CVE-2025-71368
Deferred Deferred - Pending Action

Picklescan Arbitrary Code Execution via doctest.debug_script Bypass

Vulnerability report for CVE-2025-71368, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-30

Last updated on: 2026-07-01

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-30
Last Modified
2026-07-01
Generated
2026-07-21
AI Q&A
2026-07-01
EPSS Evaluated
2026-07-19
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
mmaitre314 picklescan to 0.0.30 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-502 The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability in picklescan versions before 0.0.30 is that it fails to detect the doctest.debug_script function when analyzing pickle files. This allows attackers to craft malicious pickle files that include calls to doctest.debug_script, which bypasses picklescan's detection mechanisms.

When such a malicious pickle file is loaded using pickle.load, it can execute arbitrary commands on the target system.

Detection Guidance

This vulnerability involves malicious pickle files embedding the doctest.debug_script function, which picklescan versions before 0.0.30 fail to detect. Detection involves analyzing pickle files for the presence of doctest.debug_script calls that bypass picklescan's checks.

Since picklescan itself fails to detect this function, manual inspection or enhanced scanning tools are required.

Suggested commands to detect suspicious pickle files could include using Python scripts to safely inspect pickle files without loading them, for example:

  • Use a Python script to parse pickle files and look for references to 'doctest.debug_script' in the pickle bytecode or reduce calls.
  • Example command snippet: `python -c "import pickletools; pickletools.dis(open('file.pkl','rb').read())"` to disassemble the pickle file and manually check for suspicious function calls.
  • Monitor network traffic for unexpected pickle file transfers or loads, especially from untrusted sources.
Impact Analysis

This vulnerability can allow remote attackers to execute arbitrary code on your system by tricking it into loading a malicious pickle file.

Such code execution can lead to unauthorized actions, potentially compromising system integrity, confidentiality, and availability.

Compliance Impact

The vulnerability allows remote attackers to execute arbitrary code by bypassing picklescan detection when loading malicious pickle files. This can lead to unauthorized access or manipulation of data.

Such unauthorized code execution and potential data compromise can negatively impact compliance with data protection standards and regulations like GDPR and HIPAA, which require safeguarding sensitive data and ensuring system integrity.

Organizations relying on picklescan for security may unknowingly expose themselves to supply chain risks and breaches, which could result in violations of these regulations.

Mitigation Strategies

Immediate mitigation steps include:

  • Avoid loading pickle files from untrusted or unauthenticated sources, as malicious pickle files can execute arbitrary code.
  • Upgrade picklescan to version 0.0.30 or later, where detection of doctest.debug_script is improved.
  • Implement additional validation or sandboxing when handling pickle files to prevent execution of arbitrary code.
  • Review and restrict the use of pickle.load in your applications, considering safer serialization formats if possible.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-71368. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart