CVE-2026-100842
High 8.8 P4 · Monitor (27/100)MONAI through 1.6.0 contains an eval injection vulnerability in _get_fake_spatial_shape() in monai/bundle/scripts.py. The function validate…
Confirmed facts from the sources
- CVSS
- 8.8 (High) · CVSS 3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Scored by nvd@nist.gov - Exploitation confirmed
- Not in the CISA KEV catalog
- Exploitation estimated (EPSS)
- 0.22 % · percentile 7.4 % (as of 29.11.2026)
Probability of exploitation in the next 30 days – an estimate by FIRST, not confirmation. - Public exploit
- The sources reference a public exploit.
- Fix
- No fix known
- Monitored technologies
- No monitored technology
Description (source)
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 products and versions
| Vendor / product | Affected versions | Fixed in | Source |
|---|---|---|---|
| pip: monai | <= 1.6.0 | — | nvd |
| project-monai monai | <= 1.6.0 | — | nvd |
Versions as published. “Fixed in” only where a source names the version explicitly.
Recommended mitigation
- github.com (Mitigation)
In general: check your versions, update to a fixed version, limit exposure until then and follow the vendor guidance.
AI interpretation
No AI interpretation yet – it is created for urgent advisories of monitored technologies. The facts above apply regardless.
Why this priority?: P4 · Monitor (27/100)
- Estimated exploitation probability 0.22 % (EPSS, percentile 7.4 %) – an estimate, not confirmation (+0)
- The sources reference a public exploit (+10)
- Technical severity: CVSS 8.8 (HIGH) – on its own not a reason for top priority (+12)
- No fix known – mitigations needed (+5)
Priority is a general assessment from CVSS, KEV, EPSS, exploits, relevance and fix availability. Whether a specific environment is affected depends on its versions, configuration and exposure.
Original advisories and links
- Advisory https://www.vulncheck.com/advisories/monai-through-1.6.0-get-fake-spatial-shape-eval-sandb… · disclosure@vulncheck.com
- Advisory https://nvd.nist.gov/vuln/detail/CVE-2026-100842 · nvd
- Mitigation https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-h89g-r5pc-wxfm · disclosure@vulncheck.com