{"id":29845,"date":"2026-09-27T12:32:29","date_gmt":"2026-09-27T04:32:29","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-100842"},"modified":"2026-09-27T12:32:29","modified_gmt":"2026-09-27T04:32:29","slug":"cve-2026-100842","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-100842","title":{"rendered":"CVE-2026-100842 [HIGH] &#8211; MONAI through 1.6.0 contains an eval injection vulnerability in _get_fake_spatial_shape()"},"content":{"rendered":"<p>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 &#8216;p&#8217; or &#8216;n&#8217;, before passing the string to eval(). Expressions built solely from constants and attribute, subscript, or call nodes (for example &#8220;(1).__class__.__bases__[0].__subclasses__()&#8221; or &#8220;int.__class__.__init__.__globals__&#8221;) 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 &#8216;verify_net_in_out&#8217; CLI flow), an attacker who can influence a bundle&#8217;s metadata can escape the eval sandbox via object introspection chains and achieve code execution in this non-default flow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-29845","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/29845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}