CVE-2025-71343
Received Received - Intake

Remote Code Execution in Picklescan via Malicious Pickle Files

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

Publication date: 2026-07-04

Last updated on: 2026-07-04

Assigner: VulnCheck

Description

picklescan before 0.0.30 fails to detect malicious pickle files that exploit lib2to3.pgen2.pgen.ParserGenerator.make_label function in the reduce method. Attackers can craft malicious pickle files with embedded code that evades detection but executes arbitrary commands when pickle.load() is called.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-04
Last Modified
2026-07-04
Generated
2026-07-04
AI Q&A
2026-07-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
mmaitre314 picklescan From 0.0.30 (exc)
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

CVE-2025-71343 is a vulnerability in the picklescan library versions 0.0.26 and earlier where the tool fails to detect malicious pickle files that exploit the Python function lib2to3.pgen2.pgen.ParserGenerator.make_label in the reduce method.

Attackers can craft specially designed pickle files that embed malicious code which evades detection by picklescan but executes arbitrary commands when the pickle file is loaded using pickle.load().

This leads to a risk of remote code execution through deserialization of untrusted data.

Impact Analysis

This vulnerability can allow attackers to execute arbitrary code remotely by tricking the system into loading malicious pickle files that bypass detection.

It poses a supply chain risk because infected pickle files could be distributed through machine learning models, APIs, or saved Python objects.

Any organization or individual relying on picklescan for security could be impacted, potentially leading to unauthorized command execution and compromise of systems.

Detection Guidance

This vulnerability involves malicious pickle files that exploit the lib2to3.pgen2.pgen.ParserGenerator.make_label function, which picklescan versions before 0.0.30 fail to detect. Detection requires analyzing pickle files for suspicious use of this function during deserialization.

Since the vulnerability is related to the failure of picklescan to detect malicious pickle files, one way to detect it is to run picklescan on pickle files and observe if any malicious code is flagged. However, versions before 0.0.30 will not detect this specific exploit.

Suggested commands include running picklescan on pickle files to check for malicious content, for example:

  • picklescan path/to/file.pkl
  • python -c "import pickle; pickle.load(open('path/to/file.pkl', 'rb'))" # Use with caution in a safe environment to observe behavior

Note that because the vulnerability allows code execution during pickle.load(), running pickle.load() on untrusted files can be dangerous and should only be done in isolated environments.

Mitigation Strategies

The primary mitigation step is to upgrade picklescan to version 0.0.30 or later, where the detection bypass has been fixed.

Avoid loading pickle files from untrusted sources using pickle.load() as this can lead to arbitrary code execution.

Implement strict validation and sandboxing when handling pickle files to reduce the risk of executing malicious code.

Compliance Impact

The vulnerability allows attackers to execute arbitrary code by bypassing detection in the picklescan library, which can lead to unauthorized access or manipulation of data.

Such unauthorized code execution and potential data compromise can impact compliance with standards like GDPR and HIPAA, which require protection of sensitive data and prevention of unauthorized access.

Organizations relying on picklescan for security may face increased risk of data breaches or supply chain attacks, potentially violating regulatory requirements for data integrity and confidentiality.

Chat Assistant

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

EPSS Chart