CVE-2025-71341: picklescan - Remote Code Execution via Undetected profile.Profile.runctx
picklescan before 0.0.29 fails to detect the profile.Profile.runctx function when analyzing pickle files, allowing attackers to embed undetected malicious code. Remote attackers can craft malicious pickle files using profile.Profile.runctx in the reduce method to achieve remote code execution when the pickle file is loaded.
Security readout for executives and security teams
Plain-English summary
This is a high-risk flaw in picklescan, a tool used to inspect Python pickle files for dangerous behavior. Older versions may miss a malicious pickle technique, so an organization could wrongly treat a file as safe. Code execution still requires someone or some workflow to load the malicious pickle.
Executive priority
Treat as a prompt remediation item for teams handling ML models, datasets, or serialized Python artifacts. The issue is not confirmed as exploited, but it can undermine a security control and enable code execution if malicious pickle files are trusted.
Technical view
picklescan before 0.0.29 does not detect use of profile.Profile.runctx inside pickle reduce behavior. A crafted pickle can evade detection and later execute code when deserialized by a vulnerable workflow. The weakness is CWE-502 and the CVSS vector indicates network-origin input with required user interaction.
Likely exposure
Exposure is most likely in ML, data science, CI, artifact scanning, or file ingestion workflows that rely on picklescan to approve untrusted pickle files. Systems that never load pickle files, or do not rely on affected picklescan versions, have lower exposure.
Exploitation context
The source bundle does not report known active exploitation, and KEV is false. The practical risk is supply-chain or file-ingestion abuse where an attacker provides a pickle file that passes scanning, then executes when loaded by a target process.
Researcher notes
Evidence is limited to the CVE description and advisory references in the source bundle. The issue is a detection bypass in picklescan, not proof that all pickle-loading applications are directly vulnerable. Validate exposure by tracing trust decisions around scanned pickle files.
Mitigation direction
Upgrade picklescan to 0.0.29 or later, per the affected-version description.
Do not load pickle files from untrusted or unauthenticated sources.
Quarantine pickle artifacts scanned by older picklescan versions until reassessed.
Check vendor advisories for any additional fixed versions or guidance.
Prefer safer serialization formats where pickle behavior is not required.
Validation and detection
Inventory all environments using picklescan and record installed versions.
Identify pipelines that scan pickle files before loading them.
Reassess recently accepted pickle artifacts scanned with versions before 0.0.29.
Review logs for workflows loading externally supplied pickle files.
Confirm vendor advisory details against local package constraints.
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.