CVE-2026-100842

Source
https://cve.org/CVERecord?id=CVE-2026-100842
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100842.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-100842
Aliases
  • GHSA-h89g-r5pc-wxfm
Published
2026-09-27T01:28:38Z
Modified
2026-09-28T03:48:32Z
Severity
  • 7.3 (High) CVSS_V4 - 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 Calculator
Summary
MONAI through 1.6.0 _get_fake_spatial_shape eval() Sandbox Bypass via Attribute Chains
Details

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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-95"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100842.json"
}
References

Affected packages

Git / github.com/project-monai/monai

Affected ranges

Type
GIT
Repo
https://github.com/project-monai/monai
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "last_affected":  "1.6.0"
        },
        {
            "fixed":  "1.6.0"
        }
    ],
    "source":  [
        "AFFECTED_FIELD",
        "DESCRIPTION"
    ]
}

Affected versions

0.*
0.1.0
0.1.0rc1
0.1.0rc2
0.1a1.dev7
0.1a1.dev8
0.1a1.dev9
0.2.0
0.2.0rc1
0.2.0rc2
0.2.0rc3
0.3.0
0.3.0rc1
0.3.0rc2
0.3.0rc3
0.3.0rc4
0.4.0
0.4.0rc1
0.4.0rc2
0.5.0
0.5.0rc1
0.5.0rc2
0.5.0rc3
0.5.0rc4
0.5.0rc5
0.5.1
0.5.2
0.6.0
0.6.0rc1
0.6.0rc2
0.7.0
0.7.0rc1
0.7.0rc2
0.7.0rc3
0.7.0rc4
0.7.0rc5
0.8.0
0.8.0rc1
0.8.0rc2
0.8.0rc3
0.8.1
0.8.1rc1
0.8.1rc2
0.8.1rc3
0.8.1rc4
0.8.1rc5
0.9.0
0.9.0rc1
0.9.0rc2
0.9.0rc3
0.9.1
0.9.1rc1
0.9.1rc2
0.9.1rc3
0.9.1rc4
0.9.1rc5
1.*
1.0.0rc1
1.0.0rc2
1.0.0rc3
1.1.0
1.1.0rc1
1.1.0rc2
1.2.0
1.2.0rc1
1.2.0rc2
1.2.0rc4
1.2.0rc5
1.2.0rc6
1.2.0rc7
1.3.0
1.3.0rc1
1.3.0rc2
1.3.0rc3
1.3.0rc4
1.3.0rc5
1.3.1
1.3.1rc1
1.3.1rc2
1.3.1rc3
1.3.1rc4
1.3.1rc5
1.3.1rc6
1.3.1rc7
1.3.1rc8
1.3.3rc1
1.4.0
1.4.0rc1
1.4.0rc10
1.4.0rc11
1.4.0rc12
1.4.0rc2
1.4.0rc3
1.4.0rc4
1.4.0rc5
1.4.0rc6
1.4.0rc7
1.4.0rc8
1.4.0rc9
1.4.1rc1
1.5.0
1.5.0rc1
1.5.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100842.json"