CVE-2026-100842
Last modified
CVE-2026-100842 is a high-severity vulnerability rated 7/10 on the CVSS scale. 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().
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Project-MONAI | MONAI | <= 1.6.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-100842?
How severe is CVE-2026-100842?
How do I fix CVE-2026-100842?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-100836Contrast through 1.20.0 contains a panic vulnerability in th…4.3
- CVE-2026-100837Contrast (Edgeless Systems) through 1.20.0 performs unanchor…3.7
- CVE-2026-100838Contrast is a confidential-computing runtime for Kubernetes.…8.1
- CVE-2026-100839Contrast is a confidential-computing runtime for Kubernetes.…8.4
- CVE-2026-100840MONAI through 1.6.0 contains a remote code execution vulnera…7.8
- CVE-2026-100841In MONAI 1.6.0, PersistentDataset (monai/data/dataset.py) ex…7.8
- CVE-2026-100843MONAI versions before 1.6.0 contain a remote code execution …7.8
- CVE-2026-100844MONAI before 1.6.0 is vulnerable to OS command injection in …8.4
- CVE-2026-100845MONAI before 1.6.0 contains an unsafe deserialization vulner…7.8
- CVE-2026-100846MONAI before 1.5.2 contains a deserialization of untrusted d…7.6
- CVE-2026-100847AzuraCast before 0.23.8 contains a DQL injection vulnerabili…7.5
- CVE-2026-100848AzuraCast (Composer package azuracast/azuracast) before 0.23…7.1
Are you affected by CVE-2026-100842?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
