CVE-2025-71352

picklescan - Remote Code Execution via Undetected trace.Trace.runctx in Pickle Files

Published Jun 30, 2026 CVSS 4.0 · 7.6 High EPSS < 1% KEV · Not listed
Description
picklescan before 0.0.29 fails to detect the built-in Python trace.Trace.runctx function when used in pickle file reduce methods, allowing attackers to execute arbitrary code. Remote attackers can craft malicious pickle files with trace.Trace.runctx payloads that bypass picklescan detection and execute code upon pickle.load() invocation.

Analysis

AI-generated

Technical impact

picklescan before 0.0.29 does not detect the built‑in Python trace.Trace.runctx function when it is used inside pickle-file reduce methods, enabling attackers to embed arbitrary code that will execute when an attacker-controlled pickle file is loaded. This flaw allows remote code execution through unrestricted deserialization and is categorized as CWE‑693: Security Misconfiguration.

Affected Systems

All versions of the picklescan tool released before 0.0.29 are affected. The vendor is picklescan (project name picklescan) and the product impacted is the picklescan application. No specific patch versions beyond 0.0.29 are listed, so any release earlier than that is considered vulnerable.

Risk and Exploitability

The CVSS base score of 7.6 indicates a high severity vulnerability. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, but the flaw can be exploited remotely by delivering a malicious pickle file that contains a trace.Trace.runctx payload. An attacker does not need special privileges; any system that processes untrusted pickle data with picklescan is at risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade picklescan to version 0.0.29 or later.
  • If an upgrade is not possible, configure your environment to ignore or filter out trace.Trace.runctx when deserializing pickle files, or use a safe deserialization library that forbids custom reduce methods.
  • Only load pickle files from trusted sources and validate file integrity before processing with picklescan.

Generated by OpenCVE AI on June 30, 2026 at 23:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Picklescan
Picklescan picklescan
Vendors & Products Picklescan
Picklescan picklescan
Type Values Removed Values Added
Description picklescan before 0.0.29 fails to detect the built-in Python trace.Trace.runctx function when used in pickle file reduce methods, allowing attackers to execute arbitrary code. Remote attackers can craft malicious pickle files with trace.Trace.runctx payloads that bypass picklescan detection and execute code upon pickle.load() invocation.
Title picklescan - Remote Code Execution via Undetected trace.Trace.runctx in Pickle Files
First Time appeared Mmaitre314
Mmaitre314 picklescan
Weaknesses CWE-693
CPEs cpe:2.3:a:mmaitre314:picklescan:*:*:*:*:*:*:*:*
Vendors & Products Mmaitre314
Mmaitre314 picklescan
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-693

    Protection Mechanism Failure

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 1, 2026, 1:20 PM
Reserved
Jun 20, 2026, 12:55 PM
Status
Deferred
Published
Jun 30, 2026, 11:16 PM
Modified
Oct 12, 2026, 9:10 PM