Bug 2431308 (CVE-2025-56005) - CVE-2025-56005 ply: python-ply: Unsafe pickle file handling in Ply
Summary: CVE-2025-56005 ply: python-ply: Unsafe pickle file handling in Ply
Keywords:
Status: NEW
Alias: CVE-2025-56005
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2431973 2431974 2431975 2431976 2431977 2431978 2431980 2431981 2437978 2437979 2437980 2437981
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-01-20 19:01 UTC by OSIDB Bzimport
Modified: 2026-07-18 08:29 UTC (History)
78 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-01-20 19:01:20 UTC
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 You need to log in before you can comment on or make changes to this bug.