{"id":"CVE-2026-100842","published":"2026-09-27T01:28:38Z","modified":"2026-09-30T16:54:11Z","title":"MONAI through 1.6.0 _get_fake_spatial_shape eval() Sandbox Bypass via Attribute Chains","vendor":"Project-MONAI","product":"MONAI","tier":"tail","description":{"text":"MONAI through 1.6.0 contains an eval injection vulnerability in _get_fake_spatial_shape() in monai/bundle/scripts.py. The function validates shape expressions with a helper that walks the AST and only collects ast.Name nodes, rejecting any name other than 'p' or 'n', before passing the string to eval(). Expressions built solely from constants and attribute, subscript, or call nodes (for example \"(1).__class__.__bases__[0].__subclasses__()\" or \"int.__class__.__init__.__globals__\") contain no ast.Name nodes and therefore bypass the allowlist. Because the shape value originates from bundle metadata consumed by _get_real_input_data and verify_net_in_out (reachable through the bundle 'verify_net_in_out' CLI flow), an attacker who can influence a bundle's metadata can escape the eval sandbox via object introspection chains and achieve code execution in this non-default flow.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0022,"percentile":0.07444,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-h89g-r5pc-wxfm","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/monai-through-1.6.0-get-fake-spatial-shape-eval-sandbox-bypass-via-attribute-chains","tags":["third-party-advisory"]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":1.49},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"project-monai","affectedVersions":[{"vendor":"Project-MONAI","product":"MONAI","versions":["<= 1.6.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-30T16:54:04.586486Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"monai","vulnerableRanges":["<1.6.1rc0"],"patched":["1.6.1rc0"],"from":["PYSEC-2026-4017"],"provenance":"source"}],"summary":{"text":"MONAI through 1.6.0 has an eval injection flaw in the _get_fake_spatial_shape() function in monai/bundle/scripts.py, where shape expressions are checked by an AST allowlist that only inspects bare names but still passes the string to eval(). An attacker who can influence a bundle's metadata and can get it processed through the bundle verify_net_in_out CLI flow, which is a non-default path, could use attribute, subscript, or call chains that contain no names to escape the check and execute arbitrary code, requiring local access and low privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:43Z"},"euvd":{"id":"EUVD-2026-87846","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-100844","published":"2026-09-27","fixed":"1.6.0","kev":false,"link":{"from":"CVE-2026-100844","to":"CVE-2026-100842","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:monai","fromFixed":"1.6.0","toFixed":"1.6.1rc0","daysApart":0}]}},{"cve":"CVE-2026-100845","published":"2026-09-27","fixed":"1.6.0","kev":false},{"cve":"CVE-2026-100840","published":"2026-09-27","fixed":"1.6.1rc0","kev":false},{"cve":"CVE-2026-100842","published":"2026-09-27","fixed":"1.6.1rc0","kev":false},{"cve":"CVE-2026-48705","published":"2026-11-05","fixed":"1.6.1","kev":false,"link":{"from":"CVE-2026-100842","to":"CVE-2026-48705","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:monai","fromFixed":"1.6.1rc0","toFixed":"1.6.1","daysApart":39}]}}],"package":"PyPI:monai"}}