MONAI through 1.6.0 _get_fake_spatial_shape eval() Sandbox Bypass via Attribute Chains
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-95.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Project-MONAI | MONAI | up to 1.6.0 | — | No fix listed | CNA |
- MONAI VendorProject-MONAI Affected up to 1.6.0 Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:project-monai:monai:*:*:*:*:*:*:*:* | up to 1.6.0 | Vulnerable | Project-MONAI |
- cpe:2.3:a:project-monai:monai:*:*:*:*:*:*:*:* Versions up to 1.6.0 Vulnerable ·Project-MONAI
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-100842
- 2026-10-03 Alias added: GHSA-j335-cfj5-2fw8
References
More Project-MONAI Monai vulnerabilities
- TI-2026-64984 MONAI before 1.5.2 Remote Code Execution via Pickle Deserialization CVSS 4.0HIGH 8.8
- TI-2026-64983 MONAI before 1.6.0 Remote Code Execution via NumpyReader CVSS 4.0HIGH 8.5
- TI-2026-64982 MONAI before 1.6.0 OS Command Injection via dataset_name_or_id CVSS 4.0HIGH 8.6
- TI-2026-64981 MONAI before 1.6.0 Remote Code Execution via algo_from_pickle CVSS 4.0HIGH 8.5
- TI-2026-64978 MONAI through 1.6.0 Remote Code Execution via bundle configuration CVSS 4.0HIGH 8.5
- TI-2026-17553 MONAI has Path Traversal (Zip Slip) in NGC Private Bundle Download CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-100842 · CVE Program
- CVE-2026-100842 · NVD
- FIRST EPSS
- GHSA-j335-cfj5-2fw8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences