Find a vulnerability
Search criteria
ⓘ
Use this form to refine search results.
Full-text search supports keyword queries with ranking and filtering.
You can combine vendor, product, and sources to narrow results.
Enable “Apply ordering” to sort by date instead of relevance.
Related vulnerabilities
PYSEC-2026-4017
Vulnerability from pysec - Published: 2026-09-27 02:17 - Updated: 2026-10-01 08:46MONAI 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.
| Name | purl | monai | pkg:pypi/monai |
|---|
{
"affected": [
{
"ecosystem_specific": {},
"package": {
"ecosystem": "PyPI",
"name": "monai",
"purl": "pkg:pypi/monai"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.6.1rc0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.0.1",
"0.1.0",
"0.2.0",
"0.3.0",
"0.4.0",
"0.5.0",
"0.5.1",
"0.5.2",
"0.5.3",
"0.6.0",
"0.7.0",
"0.8.0",
"0.8.1",
"0.9.0",
"0.9.1",
"1.0.0",
"1.0.1",
"1.1.0",
"1.2.0",
"1.3.0",
"1.3.1",
"1.3.2",
"1.3.2rc1",
"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",
"1.5.2",
"1.5.2rc1",
"1.6.0"
]
}
],
"aliases": [
"CVE-2026-100842",
"GHSA-h89g-r5pc-wxfm"
],
"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 \u0027p\u0027 or \u0027n\u0027, 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 \u0027verify_net_in_out\u0027 CLI flow), an attacker who can influence a bundle\u0027s metadata can escape the eval sandbox via object introspection chains and achieve code execution in this non-default flow.",
"id": "PYSEC-2026-4017",
"modified": "2026-10-01T08:46:46.264813Z",
"published": "2026-09-27T02:17:22.693Z",
"references": [
{
"type": "ADVISORY",
"url": "https://www.vulncheck.com/advisories/monai-through-1.6.0-get-fake-spatial-shape-eval-sandbox-bypass-via-attribute-chains"
},
{
"type": "EVIDENCE",
"url": "https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-h89g-r5pc-wxfm"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}