CVE-2025-71342: picklescan - Undetected Remote Code Execution via idlelib.run.Executive.runcode
picklescan before 0.0.30 fails to detect malicious pickle files using idlelib.run.Executive.runcode in reduce methods. Attackers can embed undetected code in pickle files that executes during pickle.load, enabling remote code execution in PyTorch models and supply chain attacks.
Security readout for executives and security teams
Plain-English summary
This flaw means picklescan may miss a malicious Python pickle embedded in a model or artifact. If a trusted workflow later loads that pickle, code can run in that environment. The main business concern is ML supply-chain exposure where model files are accepted from external or untrusted sources.
Executive priority
Prioritize remediation for ML, data science, and CI environments that process third-party models. The issue is high severity, but urgency depends on whether untrusted pickle-based artifacts are loaded after scanning.
Technical view
picklescan before 0.0.30 fails to detect pickle reduce methods using idlelib.run.Executive.runcode. The underlying weakness is unsafe deserialization, CWE-502. The CVSS 3.1 score is 8.1 with network attack vector, low complexity, no privileges, and required user interaction.
Likely exposure
Organizations are most exposed if they scan PyTorch models or pickle artifacts with vulnerable picklescan versions and then load artifacts from partners, public repositories, CI pipelines, or user submissions.
Exploitation context
The bundle does not show KEV listing or active exploitation evidence. Exploitation depends on a victim or automated process loading a malicious pickle that vulnerable picklescan failed to flag.
Researcher notes
Evidence supports a detection-bypass RCE risk tied to idlelib.run.Executive.runcode in reduce methods. The source bundle does not provide active exploitation evidence. Affected-version wording should be validated against the GitHub advisory before enforcement decisions.
Mitigation direction
Upgrade picklescan to 0.0.30 or later where vendor guidance confirms the fix.
Do not load pickle or PyTorch artifacts from untrusted sources.
Treat picklescan as one control, not approval to execute model artifacts.
Add provenance checks for externally sourced model files.
Review vendor advisories for any updated remediation details.
Validation and detection
Inventory all environments using picklescan and record installed versions.
Identify pipelines that scan then load pickle or PyTorch model artifacts.
Check whether external model sources can reach automated loading workflows.
Confirm vulnerable versions are removed from CI, notebooks, and production images.
Review security advisories for changed affected-version guidance.
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.