CVE-2025-71350: picklescan - Undetected Remote Code Execution via torch.utils.collect_env.run
picklescan before 0.0.28 fails to detect malicious pickle files using torch.utils.collect_env.run function in reduce methods. Attackers can embed undetected code in pickle files that executes remote commands when loaded by victims.
Security readout for executives and security teams
Plain-English summary
picklescan missed a dangerous pickle pattern, so a file could appear safe while still running attacker-controlled commands when loaded. The main risk is false assurance in ML or Python artifact workflows that trust picklescan results before loading pickle-based files.
Executive priority
Treat this as a high-priority supply-chain and ML workflow issue if your organization loads pickle-based artifacts. The business concern is not only a scanner bug, but misplaced trust before code-capable files are executed.
Technical view
Before picklescan 0.0.28, malicious pickle reduce methods using torch.utils.collect_env.run were not detected. The underlying risk is unsafe deserialization, mapped to CWE-502. Loading a crafted pickle remains the trigger; the advisory describes detection bypass leading to remote command execution when a victim loads the file.
Likely exposure
Exposure is most likely in teams scanning pickle, PyTorch, or ML model artifacts with picklescan before 0.0.28, especially where artifacts come from users, partners, public repositories, or CI intake pipelines.
Exploitation context
The source bundle does not show KEV listing or confirmed active exploitation. Attack requires a victim workflow to load a malicious pickle file after it passes inadequate scanning. No exploit steps are provided here.
Researcher notes
Evidence supports a detection gap for torch.utils.collect_env.run in pickle reduce methods before 0.0.28. Version metadata in the bundle is slightly ambiguous, so verify the exact affected and fixed ranges against the vendor advisory.
Mitigation direction
Upgrade picklescan to 0.0.28 or later, verifying vendor guidance.
Do not load pickle artifacts from untrusted or unverified sources.
Add independent controls around ML artifact provenance and approval.
Review CI and ingestion gates that rely only on picklescan.
Quarantine previously accepted pickle artifacts until rechecked.
Validation and detection
Inventory picklescan versions in repositories, containers, and CI images.
Identify workflows accepting pickle or PyTorch artifacts from external sources.
Confirm scanner results are not the only load-safety control.
Re-scan high-risk stored artifacts after updating picklescan.
Review logs for scanned artifacts later loaded by production systems.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-502: Code execution behavior lookup
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
1ADP providers
3Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-502 · source CWE mapping
Deserialization of Untrusted Data
Deserialization of Untrusted Data represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.