CVE-2025-71343

picklescan - Arbitrary Code Execution via lib2to3.pgen2.pgen.ParserGenerator.make_label Detection Bypass

Published Jul 4, 2026 CVSS 4.0 · 7.6 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

picklescan, when using a lib2to3 bundled version prior to 0.0.30, fails to recognize malicious pickle objects that exploit the ParserGenerator.make_label method inside reduce. An attacker can craft a pickle file that bypasses picklescan’s security checks, and when pickle.load() is invoked the embedded code is executed, granting the attacker arbitrary command execution on the host running the tool. This flaw falls under the category of deserialization of untrusted data (CWE-502).

Affected Systems

All deployments of picklescan with a version earlier than 0.0.30 are affected. The vulnerability is inherent in the bundled lib2to3 library, so any environment that allows picklescan to deserialize untrusted pickle data—regardless of operating system or platform—is at risk. No narrower version scope is specified beyond the pre‑0.0.30 range, implying that all older releases are vulnerable.

Risk and Exploitability

The CVSS score of 7.6 signals a high severity of impact, while the EPSS score of less than 1% indicates that exploitation is currently considered unlikely. The flaw is not listed in the CISA KEV catalog. Based on the description, it is inferred that any process or user supplying a crafted pickle file to picklescan can trigger the vulnerability, meaning the attack vector includes local file ingestion and potentially remote injection if picklescan accepts data over a network. The vulnerability requires no authentication and can be triggered by simply calling pickle.load() on a malicious payload.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade picklescan to 0.0.30 or later to incorporate the fix for the deserialization flaw.
  • If an upgrade cannot be applied immediately, validate or whitelist pickle inputs before deserialization, for example by checking file hashes or implementing a custom packet validator to ensure only approved data reaches pickle.load().
  • Run picklescan within a restricted sandbox or apply OS‑level controls such as AppArmor or SELinux to limit the tool’s file and network permissions, thereby containing potential damage if an attacker succeeds.

Generated by OpenCVE AI on July 31, 2026 at 14:44 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.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.
Title picklescan - Arbitrary Code Execution via lib2to3.pgen2.pgen.ParserGenerator.make_label Detection Bypass
First Time appeared Mmaitre314
Mmaitre314 picklescan
Weaknesses CWE-502
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-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 7, 2026, 2:23 AM
Reserved
Jun 20, 2026, 12:48 PM
Status
Deferred
Published
Jul 4, 2026, 2:16 AM
Modified
Oct 12, 2026, 9:10 PM