ADVISORIES

PyPA Advisory Database

PYSEC-2026-4015

Details

MONAI through 1.6.0 contains a remote code execution vulnerability in the bundle configuration engine that resolves _target_ values to arbitrary importable callables without an allow list and passes $ expressions to Python eval(). Attackers can publish a malicious bundle with crafted configuration containing arbitrary code that executes when a victim loads the bundle using monai.bundle.load() or monai.bundle.run().

Affected packages

EcosystemPackageAffected versions
PyPImonai
All versions before 1.6.1rc0 (fixed in 1.6.1rc0)

References