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, prior to version 0.0.30, bundled lib2to3.pgen2.pgen.ParserGenerator.make_label function used inside the reduce method. An attacker can craft a malicious pickle file that bypasses picklescan’s detection logic, causing the original picklescan process to deserialize malicious payloads. This grants execution and full control over the system running picklescan. The weakness is classified as CWE‑502.

Affected Systems

All deployments of the open‑source tool picklescan running a version earlier than 0.0.30 are affected. The vulnerability exists in the bundled lib2to3 library, so any environment that processes untrusted pickle data with picklescan—regardless of operating system or platform—is impacted. No explicit list of vulnerable versions beyond the pre‑0.0.30 range is provided, so the assumption is that every earlier release is vulnerable.

Risk and Exploitability

The CVSS score of 7.6 indicates a high severity impact, while the EPSS score of less than 1% suggests that exploitation is currently considered unlikely. The vulnerability is not catalogued in the CISA KEV list. The attack does not require authentication; any user or process that supplies a crafted pickle file can trigger the flaw. The likely attack vector is local when picklescan reads a file from the filesystem or accepts pickle data over a network or from external sources.

Generated by OpenCVE AI on July 25, 2026 at 21:20 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 performed immediately, limit picklescan to processing pickle‑verified inputs.
  • Enable operating system security modules such as AppArmor or SELinux to constrain the file and network access granted to the picklescan process, further limiting the damage potential.

Generated by OpenCVE AI on July 25, 2026 at 21:20 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

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-25T21:30:17Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data