CVE-2025-71322: PickleScan - Unsafe Globals Check Bypass via pty.spawn Function
PickleScan before 0.0.33 fails to include the pty.spawn function in its unsafe globals list, allowing attackers to bypass security checks. Malicious actors can craft pickle payloads using pty.spawn to achieve arbitrary code execution when files are processed by PickleScan.
Security readout for executives and security teams
Plain-English summary
PickleScan is meant to detect unsafe Python pickle files. This flaw lets a malicious pickle evade one safety check by using pty.spawn, potentially leading to arbitrary code execution when PickleScan processes the file. The main business risk is in workflows that scan untrusted pickle files, especially AI/ML model pipelines or artifact intake processes.
Executive priority
Treat as a high-priority remediation for AI/ML and artifact-processing environments. The issue can undermine a security control and may allow code execution if malicious files are processed. Prioritize internet-facing or partner-fed ingestion workflows first.
Technical view
CVE-2025-71322 is a CWE-693 protection-mechanism failure in PickleScan before 0.0.33. The unsafe globals list omitted pty.spawn, allowing crafted pickle payloads to bypass checks and execute code during processing. CVSS 3.1 is 8.8, with network attack vector, low complexity, no privileges required, and user interaction required.
Likely exposure
Exposure is most likely where PickleScan processes externally supplied or untrusted pickle files, such as ML model downloads, artifact repositories, CI pipelines, or security validation workflows. Systems not using PickleScan, or not scanning untrusted pickle content, are unlikely to be affected.
Exploitation context
The sources describe arbitrary code execution through crafted pickle payloads processed by PickleScan. The CVE is not listed as KEV, and the provided sources do not state active exploitation in the wild. Successful exploitation requires PickleScan to process a malicious file.
Researcher notes
The record says PickleScan before 0.0.33 omits pty.spawn from unsafe globals. Affected-version metadata in the bundle is terse, so validate exact fixed and affected ranges against GHSA before enforcement. No exploit-in-the-wild evidence is provided here.
Mitigation direction
Check installed PickleScan versions against the vendor advisory.
Upgrade PickleScan to 0.0.33 or later if confirmed affected.
Avoid processing untrusted pickle files until upgraded or risk-reviewed.
Restrict artifact intake sources and require provenance for pickle files.
Monitor vendor guidance for any additional remediation instructions.
Validation and detection
Inventory systems, pipelines, and notebooks using PickleScan.
Identify workflows that scan externally supplied pickle files.
Confirm PickleScan version from package metadata or dependency manifests.
Review recent scan inputs for untrusted pickle artifacts.
Document upgrade status and remaining exception cases.
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 · low confidence lookup
CWE-693: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. 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: noneAutomatable: 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-693 · source CWE mapping
Protection Mechanism Failure
Protection Mechanism Failure represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.