Vulnerability · Published Jun 30, 2026 · Assigned by VulnCheck

CVE-2025-71368picklescan - Arbitrary Code Execution via Undetected doctest.debug_script

High 8.1

In plain English

A high-severity unsafe deserialization in picklescan from picklescan. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.8%top 42.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

picklescan before 0.0.30 fails to detect the doctest.debug_script function when analyzing pickle files, allowing attackers to execute arbitrary code. Remote attackers can craft malicious pickle files embedding doctest.debug_script calls that bypass picklescan detection and execute arbitrary commands upon pickle.load invocation.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpicklescan0.0.30GHSA-fqq6-7vqf-w3fg

Affected products (as reported)

VendorProductVersions
picklescan picklescan 0 – before 0.0.30

Weakness: CWE-502 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

References