Case · DiggingBeagle record

MONAI MMAR checkpoint configuration executed arbitrary importable callables

The maintainer demonstrates that loading an untrusted MMAR artifact can trigger Python execution under the loader process.

Published by DiggingBeagle:

Scope

An application loads a model bundle supplied or altered by a less-trusted source using MONAI before 1.6.2.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

The cited primary source supports the stated mechanism and scoped outcome. Impact band remains unrated because no calibrated victim exposure or severity distribution is established by the cited evidence.

Assessed Nov 22, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Accept an untrusted MMAR bundle

    An application loads a model package obtained from an outside source through MONAI load_from_mmar.

    Boundary: Model source integrity before artifact parsing

  2. 02

    Resolve callable names from configuration

    The MMAR configuration allows attacker-controlled Python callable/class references to be imported or invoked as part of model setup.

    Boundary: Non-executable model metadata promoted into Python code authority

  3. 03

    Run code as the loader

    The project advisory describes a controlled execution route using the model load path; a hostile bundle must be selected first.

    Boundary: Host process execution independent of unsafe pickle

Claims & evidence

CLM-2026-NOV22-MONAI-MMAR-CALLABLE-SCOPEThe maintainer demonstrates that loading an untrusted MMAR artifact can trigger Python execution under the loader process. `torch.load(weights_only=True)` does not close this independent metadata-as-code route.supported

Basis: reported finding

Link to claim
CLM-2026-NOV22-MONAI-MMAR-CALLABLE-MECHANISMA third-party MMAR model bundle could include configuration values interpreted as importable Python functions or classes. The load_from_mmar path could import and execute a callable from attacker-controlled model metadata without requiring unsafe pickle deserialization.supported

Basis: reported finding

Link to claim

Implications

Checkpoint deserialization defenses alone do not close this path because the execution instruction lives in configuration rather than in a serialized tensor object. A strict class/callable allowlist is necessary at the loader boundary; nothing in the advisory demonstrates exploitation through an ordinary chat message.

Controls and mitigations

  • restrict callable/class resolution to an explicit trusted implementation set and verify provenance of all downloaded model bundles

Unknowns and contradictions

  • This does not show an unauthenticated network exploit or any observed patient data theft. Exact exposure depends on who selects model artifacts.

Sources and citation

Material revision history

  1. Nov 22, 2026 · Published version · first publication · revision 275