p PatchFirst

CVE-2026-100842

CVE-2026-100842 · MONAI through 1.6.0 _get_fake_spatial_shape eval() Sandbox Bypass via Attribute Chains

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

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.

CVSS 7.3 · Élevée · EPSS 0,2% · Correctif disponible

Publication
Mise à jour

Pile logicielle: python

Produits et versions concernés

  • monai

    Versions du logiciel
    • ≥ 0, ≤ 1.6.0: Concernée (semver)

    Aucun correctif publié

  • monai PyPI

    Versions du logiciel
    • 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
    Plages de versions concernées
    • ECOSYSTEM: < 1.6.1rc0

    Mettez à jour vers 1.6.1rc0

Sources originales

Vérifiez votre serveur →