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.
Published: 2026-07-04
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

Generated by OpenCVE AI on July 31, 2026 at 14:44 UTC.

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Tue, 07 Jul 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 04 Jul 2026 02:45:00 +0000

Type Values Removed Values Added
First Time appeared Picklescan
Picklescan picklescan
Vendors & Products Picklescan
Picklescan picklescan

Sat, 04 Jul 2026 01:45:00 +0000

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'}


Subscriptions

Mmaitre314 Picklescan
Picklescan Picklescan
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-07T02:23:27.888Z

Reserved: 2026-06-20T12:48:06.735Z

Link: CVE-2025-71343

cve-icon Vulnrichment

Updated: 2026-07-07T02:23:22.707Z

cve-icon NVD

Status : Deferred

Published: 2026-07-04T02:16:21.527

Modified: 2026-07-07T04:17:17.927

Link: CVE-2025-71343

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T14:45:03Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data