Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious pickle with __reduce__ OS payload
-
DeliveryDistribute as model checkpoint/algo bundle
-
ExploitVictim pipeline calls algo_from_pickle() on file
-
Executionpickle.loads() deserializes before validation
-
ImpactArbitrary commands execute in victim's context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that a MONAI application or Auto3DSeg pipeline call algo_from_pickle() (in monai/auto3dseg/utils.py) with a file path the attacker can control or substitute - typically via exchange of algorithm bundles or model checkpoints. The vulnerable pickle.loads() at line 321 runs BEFORE any isinstance/key validation, with no Unpickler.find_class allowlist, so no special MONAI configuration flag is needed; the deserialization path itself is the sink. Limiting factors: the vector is local (AV:L) and needs passive user interaction (UI:P) - a victim must load the malicious file - so there is no remote unauthenticated network exposure. Notably, users who upgraded to v1.5.2 believing GHSA-89gg-p5r5-q6r4 patched this remain fully vulnerable; only 1.6.0 contains the real fix. |
| Impact | This is a genuine but conditionally-gated deserialization RCE (CWE-502). The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H = 8.5) correctly models it as a LOCAL vector requiring passive user interaction: the attacker does not directly reach a network service - instead a victim's ML pipeline must call algo_from_pickle() against an attacker-supplied file path. The strongest escalating signal is the VulnCheck GHSA advisory, which not only provides a working PoC (os.system via __reduce__) but VERIFIES it against v1.5.2 and demonstrates this is an INCOMPLETE FIX: the earlier GHSA-89gg-p5r5-q6r4 claimed a v1.5.2 patch, yet monai/auto3dseg/utils.py was untouched since 2024-07-12 and the cited 'fix' was actually an unrelated Zip Slip change - so all three pickle.loads() sinks (lines 321/350/356) remained live until the real fix in 1.6.0. Counter-balancing signals: no EPSS score, no CISA KEV listing, and no SSVC decision data are supplied, and the local vector plus victim-load requirement make mass, automatable exploitation unlikely. Net: publicly available exploit code exists but there is no evidence of active exploitation - treat as a real fix-priority for MONAI users (especially those who deferred patching believing 1.5.2 was safe), not an emergency internet-facing exposure. |
| Exploit ScenarioDerived | An attacker distributes a malicious auto3dseg pickle artifact - e.g., a booby-trapped model checkpoint or algorithm bundle shared through the model-exchange workflows common in medical AI. When a researcher's MONAI pipeline calls algo_from_pickle() on that file, pickle.loads() at line 321 fires before any type/key validation and executes the embedded __reduce__ payload as OS commands in the victim's context. A verified proof-of-concept exists in the VulnCheck/GHSA advisory confirming code execution; because the CVSS vector is AV:L with UI:P, exploitation depends on the victim loading the attacker's file rather than direct remote access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 27, 2026
Deserialization of attacker-controlled pickle data in MONAI's Auto3DSeg module (monai/auto3dseg/utils.py) lets code run inside any process that calls algo_from_pickle() on a file the attacker can supply or substitute, with full read/write/execute impact on that process and its data. Versions before 1.6.0 are affected (pip package monai < 1.6.0, CPE cpe:2.3:a:project-monai:monai); the vulnerable pickle.loads() at line 321 fires before any isinstance or key checks, so no special configuration flag is needed to reach the sink. The exposure is conditional rather than remote: the vector is local (AV:L) with passive user interaction (UI:P) - a victim, typically a medical-imaging or ML pipeline exchanging algorithm bundles or model checkpoints, must load the crafted .pkl file, and no authentication is required on the loading side (PR:N) - scored 8.5. There is no evidence of confirmed active exploitation (no CISA KEV entry), but publicly available exploit code exists: the upstream advisory ships a working proof-of-concept, and users who upgraded to v1.5.2 believing GHSA-89gg-p5r5-q6r4 fixed this remain fully vulnerable because that earlier patch was never actually implemented in the code.
RemediationAI
Upgrade to MONAI 1.6.0 or later (for example pip install --upgrade 'monai>=1.6.0'), which is the release containing the actual fix for the unsafe pickle.loads() calls in monai/auto3dseg/utils.py; do not treat v1.5.2 as remediated, because GHSA-89gg-p5r5-q6r4's claimed patch was never implemented and 1.5.2 remains exploitable. If upgrading immediately is not possible, the most effective compensating control is to never pass untrusted or substitutable paths into algo_from_pickle(): restrict Auto3DSeg bundle and checkpoint directories to trusted writers with least-privilege filesystem permissions, and verify a cryptographic hash or signature of each bundle before it is loaded - the trade-off is added file-handling friction and broken support for unsigned third-party bundles. Where untrusted bundles must be processed, run the loading step in a sandboxed, disposable process or container with no network access and read-only mounts outside a scratch directory, and treat any such worker as untrusted; this contains post-exploitation impact (no lateral movement or credential theft) but does not prevent code execution in the worker itself, so it is not a substitute for the 1.6.0 upgrade. Additional hardening for pipelines that control the serialization format is to stop exchanging pickles entirely and move to non-executable formats such as safetensors or JSON/NumPy .npy with explicit schema validation; the trade-off is a migration effort and incompatibility with existing .pkl bundles. Consult https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-qxq5-qhx6-94qw and https://www.vulncheck.com/advisories/monai-before-1.6.0-remote-code-execution-via-algo-from-pickle for vendor details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-502 (Deserialization of Untrusted Data) in Python's pickle module, whose __reduce__ protocol allows an object to nominate an arbitrary callable and arguments - here exemplified by returning (os.system, ('id > /tmp/rce_proof.txt',)) - so unpickling a malicious stream executes commands. MONAI's Auto3DSeg workflow serializes algorithm bundles ('algo_bytes') into .pkl files; algo_from_pickle() in monai/auto3dseg/utils.py reads the file bytes and calls pickle.loads() at three separate sinks (line 321 for the outer container, then lines 350 and 356 for the nested algo_bytes). There is no Unpickler subclass, no find_class allowlist, and no safe-format alternative; the isinstance/key validation that follows deserialization is irrelevant because arbitrary code has already run. Source review shows the file has not been modified since 2024-07-12, so v1.5.1 and v1.5.2 contain byte-identical vulnerable code at those lines, and GHSA-89gg-p5r5-q6r4 pointed at an unrelated Zip Slip change as its patch - the prior fix was incomplete/nonexistent, and the CPE wildcard version string reflects that all releases up to the 1.6.0 fix are in scope.
Know when Monai gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attacker supplies a malicious file needing no privileges (PR:N) but a victim must load it locally, so AV:L and UI:R; unrestricted pickle yields full code execution (C/I/A:H).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
MONAI versions before 1.6.0 contain a remote code execution vulnerability in the algo_from_pickle() function due to unsafe pickle.loads() deserialization in monai/auto3dseg/utils.py. Attackers can craft malicious pickle files that execute arbitrary system commands when deserialized by the vulnerable function.
Blast Radius
ecosystem impact- 1 pypi packages depend on monai (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 1.6.0.
Articles & Coverage 1
Technical POC Analysis
CWE-502 (Deserialization of Untrusted Data).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
MONAI's Auto3DSeg module (versions before 1.6.0) contains a deserialization vulnerability that allows unauthenticated code execution in any process that loads a malicious .pkl file, potentially compromising medical-imaging and machine-learning pipelines. This affects organizations that exchange algorithm bundles or model checkpoints, where a victim must load a crafted file, leading to full read/write/execute impact on the affected process and its data. Publicly available exploit code exists, and no vendor-released patch is identified at time of analysis, making this a high-priority supply-chain risk for clinical and research environments.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting the loading of .pkl files to trusted sources, verifying file integrity and provenance, running MONAI processes in isolated environments with least privilege, and monitoring for suspicious .pkl file activity. Avoid using algo_from_pickle() on untrusted files.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in MONAI Deserialization, Injection, and RCE Flaws
View all 7MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. Rated high severity (CVSS 8.8), this vulne
MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. Rated high severity (CVSS 8.8), this vulne
MONAI versions up to 1.5.1 contain a path traversal vulnerability in the `_download_from_ngc_private()` function that fa
Arbitrary code execution in MONAI's Auto3DSeg component (versions 1.6.0 through 1.6.0rc1) lets a crafted work directory
Remote code execution in Project MONAI 0.4.0 through 1.6.0 requires an on-path attacker to tamper with SENet pretrained
Insecure deserialization in Project MONAI's nnUNetV2Runner (versions 1.2.0 up to but not including 1.6.1) lets an attack
EUVD-2026-87845
GHSA-m8hq-fmc4-c3v2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB