A supplied nnUNet model package included plans.json containing an implementation-class reference. The loader treated that reference as authority to import and instantiate the selected object, allowing untrusted configuration to execute arbitrary imported behavior. The primary advisory demonstrates a controlled file write using a selected callable. This is…
Inspect the ClaimsCase · DiggingBeagle record
MONAI nnUNet plans file selected arbitrary executable classes during model load
The primary advisory demonstrates a controlled file write using a selected callable.
Published by DiggingBeagle:
MONAI through 1.6.1 and an operator or agent loading an adversarial nnUNet bundle.
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.
Evidence basis: CLM-2026-NOV22-MONAI-NNUNET-PLANS-MECHANISM · CLM-2026-NOV22-MONAI-NNUNET-PLANS-SCOPE · MONAI nnUNet plans.json import-time class selection security advisory
At a glance
The config-controlled callable route is distinct from the MMAR and NNI issues although the same project fixed them in the same release. Model artifact validation must constrain imported code identities, not only tensor deserialization or shell escaping.
Read the implicationsA hostile model file must actually reach the loader; ordinary user prompts cannot trigger this vulnerability by themselves.
Limits and uncertaintyFull account
A supplied nnUNet model package included plans.json containing an implementation-class reference. The loader treated that reference as authority to import and instantiate the selected object, allowing untrusted configuration to execute arbitrary imported behavior.
The primary advisory demonstrates a controlled file write using a selected callable. This is a distinct ingestion surface from MMAR and from pickle-based checkpoint deserialization, even though all three concern untrusted model artifacts. The critical boundary is data-driven neural-network architecture selection becoming executable host process behavior.
The documented repair is enforce an allowlist of architectures and reject arbitrary module/object names in untrusted model plans. A hostile model file must actually reach the loader; ordinary user prompts cannot trigger this vulnerability by themselves.
Mechanism and trust boundary
- 01
Load an nnUNet model package
A MONAI user or model-loading agent accepts a bundle containing plans.json from an untrusted provider.
Boundary: Downloaded architecture metadata outside trusted codebase
- 02
Resolve an arbitrary implementation class
The plans file names a Python module/class that the loader imports and instantiates rather than restricting it to vetted architectures.
Boundary: Model configuration string becomes executable import target
- 03
Trigger the selected callable
A project-controlled proof of concept performed a file write; actual impact depends on the process rights and selected bundle.
Boundary: Arbitrary local code behavior during model setup
Claims & evidence
CLM-2026-NOV22-MONAI-NNUNET-PLANS-SCOPEThe primary advisory demonstrates a controlled file write using a selected callable. This is a distinct ingestion surface from MMAR and from pickle-based checkpoint deserialization, even though all three concern untrusted model artifacts.supported
Basis: reported finding
- supportsMONAI nnUNet plans.json import-time class selection security advisoryprimary disclosure
Primary advisory or study: reproduction, results and limitations
CLM-2026-NOV22-MONAI-NNUNET-PLANS-MECHANISMA supplied nnUNet model package included plans.json containing an implementation-class reference. The loader treated that reference as authority to import and instantiate the selected object, allowing untrusted configuration to execute arbitrary imported behavior.supported
Basis: reported finding
- supportsMONAI nnUNet plans.json import-time class selection security advisoryprimary disclosure
Primary advisory or study: technical mechanism and affected component
- supportsMONAI nnUNet plans.json import-time class selection security advisoryprimary disclosure
GHSA-95v4-gm26-h6xf: nnUNet plans.json architecture class selection and file-write PoC
Implications
The config-controlled callable route is distinct from the MMAR and NNI issues although the same project fixed them in the same release. Model artifact validation must constrain imported code identities, not only tensor deserialization or shell escaping.
Controls and mitigations
- enforce an allowlist of architectures and reject arbitrary module/object names in untrusted model plans
Unknowns and contradictions
- A hostile model file must actually reach the loader; ordinary user prompts cannot trigger this vulnerability by themselves.
Sources and citation
Material revision history
- Nov 22, 2026 · Published version · first publication · revision 275