
CVE catalog
CVE-2025-56005
ply: CVE-2025-56005
- Severity
- Critical · CVSS 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 18.81% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ply | sid | 3.11-12 | vulnerable |
| Debian | ply | forky | 3.11-12 | vulnerable |
| Debian | ply | trixie | 3.11-9 | vulnerable |
| Debian | ply | bookworm | 3.11-5 | vulnerable |
| Cpe | ply | Not reported | Not reported | unknown |
| Ubuntu | ply | 16.04 | 3.7-1 | vulnerable |
| Ubuntu | ply | 18.04 | 3.9-1 | vulnerable |
| Ubuntu | ply | 18.04 | 3.11-1 | vulnerable |
| Ubuntu | ply | 20.04 | 3.11-3 | vulnerable |
| Ubuntu | ply | 20.04 | 3.11-3build1 | vulnerable |
| Ubuntu | ply | 20.04 | 3.11-3ubuntu0.1 | vulnerable |
| Ubuntu | ply | 22.04 | 3.11-4ubuntu1 | vulnerable |
| Ubuntu | ply | 22.04 | 3.11-5 | vulnerable |
| Ubuntu | ply | 24.04 | 3.11-5 | vulnerable |
| Ubuntu | ply | 24.04 | 3.11-6 | vulnerable |
| Ubuntu | ply | 25.10 | 3.11-9 | vulnerable |
| Opensuse | python-jsonpath-ng | tumbleweed | 1.8.0-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ply | source | sid | (unfixed) | unimportant | Not reported | Not reported |
| Debian | ply | source | forky | (unfixed) | unimportant | Not reported | Not reported |
| Debian | ply | source | trixie | (unfixed) | unimportant | Not reported | Not reported |
| Debian | ply | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
| Opensuse | python-jsonpath-ng | rpm | tumbleweed | 1.8.0-1.1 | Not reported | OPENSUSE-SU-2026:10418-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-ply]Affected
Source package: [ply]
Details (2)
3.11-5· all · bookwormAffected
dsa · ply · debian · bookworm; dsa · ply · debian · 12
3.11-5· all · bookwormAffected
dsa · ply · debian · bookworm; dsa · ply · debian · 12
- [python-ply-doc]Affected
Source package: [ply]
Details (2)
3.11-5· all · bookwormAffected
dsa · ply · debian · bookworm; dsa · ply · debian · 12
3.11-5· all · bookwormAffected
dsa · ply · debian · bookworm; dsa · ply · debian · 12
[Debian 13 (Trixie)]
- [ply]Affected
Source package: [ply-probe]
Details (2)
2.4.0-1· amd64 · trixieAffected
dsa · ply · debian · 13
2.4.0-1· arm64 · trixieAffected
dsa · ply · debian · 13
- [python3-ply]Affected
Source package: [ply]
Details (2)
3.11-9· all · trixieAffected
dsa · ply · debian · 13
3.11-9· all · trixieAffected
dsa · ply · debian · 13
- [python-ply-doc]Affected
Source package: [ply]
Details (2)
3.11-9· all · trixieAffected
dsa · ply · debian · 13
3.11-9· all · trixieAffected
dsa · ply · debian · 13
[openSUSE Tumbleweed]
- [python313-jsonpath-ng]Unknown
Source package: [python-jsonpath-ng]
Details (1)
1.8.0-1.3· noarch · tumbleweedUnknown · Fixed:
1.8.0-1.1Version impact unknown
dsa · python-jsonpath-ng · opensuse · tumbleweed
- [python314-jsonpath-ng]Unknown
Source package: [python-jsonpath-ng]
Details (1)
1.8.0-1.3· noarch · tumbleweedUnknown · Fixed:
1.8.0-1.1Version impact unknown
dsa · python-jsonpath-ng · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10418-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2025-56005]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-56005]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-56005]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10418-1]
- [https://security-tracker.debian.org/tracker/CVE-2025-56005]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-56005.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1730.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]