# CVE-2026-100842: MONAI through 1.6.0 \_get\_fake\_spatial\_shape eval() Sandbox Bypass via Attribute Chains

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v4.0, CNA) `CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **CWE:** CWE-95
- **Aliases:** GHSA-h89g-r5pc-wxfm, PYSEC-2026-4017
- **Published:** 2026-09-27T01:28:38.149Z
- **Modified:** 2026-10-01T09:15:05.393Z

## Who should check

- Projects that depend on PyPI package monai (\< 1.6.1rc0)
- Anyone running Project-MONAI MONAI \<= 1.6.0

## Description

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.

## Affected and fixed versions

- PyPI `monai`: affected \< 1.6.1rc0; fixed 1.6.1rc0 (osv)
- Project-MONAI MONAI: \<= 1.6.0 (cvelist)

## Mitigation

- Upgrade monai to 1.6.1rc0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-100842. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-100842.md
Affected: monai < 1.6.1rc0
Fixed in: 1.6.1rc0

Steps:
1. Search this machine and project for monai (PyPI), Project-MONAI MONAI: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-100842 being exploited?

There is no confirmed exploitation: CVE-2026-100842 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-100842?

High: CVSS 7.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-100842?

monai \< 1.6.1rc0.

### Is there a fix for CVE-2026-100842?

Yes. Fixed in 1.6.1rc0. Upgrade monai to 1.6.1rc0 or later.

### How do I check if I'm affected by CVE-2026-100842?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-h89g-r5pc-wxfm>
- vendor: <https://www.vulncheck.com/advisories/monai-through-1.6.0-get-fake-spatial-shape-eval-sandbox-bypass-via-attribute-chains>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-100842>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-4017> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-100842> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-100842>
