CVE-2025-56005
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.
What to do
Likely to be exploited: EPSS gives a 19% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | ply | Will not fix This is only an issue if an application is using the "picklefile" parameter, which is undocumented, in combination with untrusted pickle files. This is… | UBUNTU-CVE-2025-56005 | |
| Ubuntu 24.04 | ply | Will not fix This is only an issue if an application is using the "picklefile" parameter, which is undocumented, in combination with untrusted pickle files. This is… | UBUNTU-CVE-2025-56005 | |
| Ubuntu 22.04 | ply | Will not fix This is only an issue if an application is using the "picklefile" parameter, which is undocumented, in combination with untrusted pickle files. This is… | UBUNTU-CVE-2025-56005 | |
| Ubuntu 20.04 | ply | Fix pending | UBUNTU-CVE-2025-56005 | |
| Ubuntu 18.04 | ply | Fix pending | UBUNTU-CVE-2025-56005 | |
| Ubuntu 16.04 | ply | Fix pending | UBUNTU-CVE-2025-56005 | |
| Debian 14 | ply | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-56005 | |
| Debian 13 | ply | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-56005 | |
| Debian 12 | ply | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-56005 | |
| Red Hat Enterprise Linux 10 | python3-ply | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ply | Not affected | ||
| Red Hat Enterprise Linux 8 | python-ply | Not affected | ||
| Red Hat Enterprise Linux 8 | python38-ply | Not affected | ||
| Red Hat Enterprise Linux 8 | python39-ply | Not affected | ||
| Red Hat Enterprise Linux 7 | python-ply | Not affected |
References
- https://github.com/bohmiiidd/Undocumented-RCE-in-PLY
- https://github.com/tom025/ply_exploit_rejection
- https://github.com/bohmiiidd/Undocumument_RCE_PLY-yacc-CVE-2025-56005
- https://github.com/tom025/ply_exploit_rejection/issues/1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.