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…

Published: 27.09.2026 · Last updated: 30.11.2026 08:19 UTC · Revision 1 · Sources: FIRST Exploit Prediction Scoring System (EPSS), NIST National Vulnerability Database (NVD)

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 / productAffected versionsFixed inSource
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

Vendor patches and guidance

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