Skip to main content
EPSS 17.5%top 3.1%

CVE-2025-56005: n/a

0
Critical
VulnerabilityCVE-2025-56005cvecve-2025-56005gcvecwe-502
Published: 01/20/2026 (01/20/2026, 00:00:00 UTC)
Source: CVE Database V5

Description

An undocumented and unsafe feature in the PLY (Python Lex-Yacc) library 3.11 allows Remote Code Execution (RCE) via the `picklefile` parameter in the `yacc()` function. This parameter accepts a `.pkl` file that is deserialized with `pickle.load()` without validation. Because `pickle` allows execution of embedded code via `__reduce__()`, an attacker can achieve code execution by passing a malicious pickle file. The parameter is not mentioned in official documentation or the GitHub repository, yet it is active in the PyPI version. This introduces a stealthy backdoor and persistence risk. NOTE: A third-party states that this vulnerability should be rejected because the proof of concept does not demonstrate arbitrary code execution and fails to complete successfully.

CVSS v3.1

Score 9.8critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

ply
pkg:pypi/ply
Affected versions
*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 14:49:17 UTC

Technical Analysis

PLY versions 3.2 to 3.11 include an undocumented 'picklefile' parameter in the yacc() function that accepts a .pkl file deserialized with pickle.load() without validation. Because Python's pickle deserialization can execute embedded code via __reduce__(), an attacker able to control the pickle file can execute arbitrary code on the affected system. This vulnerability is not documented in official PLY documentation or GitHub but is present in the PyPI-distributed versions. Exploitation requires the application to explicitly implement this parameter and depends on the attacker's ability to influence the pickle file loaded, such as through shared directory race conditions, configuration injection, supply chain compromise, or chaining with other vulnerabilities. Red Hat classifies this as an Important severity issue due to its limited attack surface and conditional exploitability.

Potential Impact

If exploited, an attacker can execute arbitrary code on the affected system during the deserialization of a malicious pickle file. This can lead to full compromise of the application environment, including modification of application data, unauthorized actions, and potential denial of service. However, exploitation requires specific conditions: the application must explicitly use the undocumented 'picklefile' parameter, and the attacker must control or influence the pickle file loaded. Therefore, the impact is significant but limited to contexts where these conditions are met.

Mitigation Recommendations

Red Hat has not indicated an official patch or fix currently available for this vulnerability. Mitigation involves ensuring that applications do not use the undocumented 'picklefile' parameter or do not load pickle files from untrusted sources. Since exploitation requires the attacker to influence the pickle file, preventing untrusted file injection or modification is critical. Monitor vendor advisories for updates or patches. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mitre
Date Reserved
2025-08-16T00:00:00.000Z
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2025-56005","vendor":"Red Hat"}]

Threat ID: 696fcb0c4623b1157c474bca

Added to database: 01/20/2026, 18:35:56 UTC

Last enriched: 08/12/2026, 14:49:17 UTC

Last updated: 09/10/2026, 19:36:51 UTC

Views: 294

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses