Case · DiggingBeagle record

MONAI Auto3DSeg NNI training command accepted shell metacharacters from configuration

The advisory supports a code-execution path in the optional training workflow.

Published by DiggingBeagle:

Scope

MONAI 1.0.0 to 1.6.0 with NNI enabled and an untrusted or modifiable Auto3DSeg training configuration.

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

    Enable Auto3DSeg NNI training

    A developer or automated workflow chooses an NNI-enabled training configuration containing a work_dir or related shell-interpolated field.

    Boundary: Untrusted training metadata consumed by execution harness

  2. 02

    Construct trialCommand as shell text

    MONAI interpolates the YAML-controlled value into an NNI shell command without preserving it as an inert argument.

    Boundary: Configuration scalar becomes shell syntax

  3. 03

    Execute unintended command

    A crafted value can add a second operation when the NNI runner launches; remote exploitation without the relevant config and workflow is not established.

    Boundary: Training runner privileges and filesystem access

Claims & evidence

CLM-2026-NOV22-MONAI-NNI-TRAINING-SCOPEThe advisory supports a code-execution path in the optional training workflow. It does not claim a malicious model output directly escaped an inference sandbox or that default inference services execute the payload.supported

Basis: reported finding

Link to claim
CLM-2026-NOV22-MONAI-NNI-TRAINING-MECHANISMThe MONAI Auto3DSeg NNI integration interpolated configuration such as work_dir into a shell trialCommand rather than passing escaped arguments as a structured vector. A modified YAML value could be interpreted as a second shell command when the NNI runner launched training.supported

Basis: reported finding

Link to claim

Implications

The weakness is conditional on an optional automated training mode and a modifiable configuration file. The appropriate fix is structured argument handling or tight escaping, not merely a safer model-weight loader, because the command runs before ordinary inference.

Controls and mitigations

  • pass shell arguments without interpolation and treat project training configuration as executable input requiring review

Unknowns and contradictions

  • No observed malicious training campaign or patient record access is reported. The NNI optional dependency and trusted-config conditions materially restrict exposure.

Sources and citation

Material revision history

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