# 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 paramete…

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 18.8%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 7 links below, marked "exploit"
- Published: 2026-01-20T00:00:00.000Z
- Modified: 2026-09-17T12:17:09.870Z
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- workload-availability/fence-agents-remediation-rhel9-operator: no versions given
- rhmtc/openshift-migration-hook-runner-rhel8: no versions given
- rhmtc/openshift-migration-rhel8-operator: no versions given
- migration-toolkit-virtualization/mtv-must-gather-rhel8: no versions given
- migration-toolkit-virtualization/mtv-rhel9-operator: no versions given
- mtv-candidate/mtv-must-gather-rhel8: no versions given
- mtv-candidate/mtv-rhel9-operator: no versions given
- ocp-tools-4/jenkins-agent-base-rhel8: no versions given
- ocp-tools-4/jenkins-rhel8: no versions given
- openshift-pipelines/pipelines-console-plugin-rhel8: no versions given
- openshift-pipelines/pipelines-hub-ui-rhel8: no versions given
- openshift-service-mesh/grafana-rhel8: no versions given
- openshift-service-mesh/istio-cni-rhel8: no versions given
- openshift-service-mesh/istio-must-gather-rhel9: no versions given
- openshift-service-mesh/istio-operator-bundle: no versions given
- openshift-service-mesh/istio-rhel8-operator: no versions given
- openshift-service-mesh/kiali-ossmc-rhel8: no versions given
- openshift-service-mesh/pilot-rhel8: no versions given
- openshift-service-mesh/proxyv2-rhel9: no versions given
- openshift-service-mesh/ratelimit-rhel8: no versions given
- openshift-service-mesh/kiali-rhel9-operator: no versions given
- advanced-cluster-security/rhacs-central-db-rhel8: no versions given
- advanced-cluster-security/rhacs-scanner-db-rhel8: no versions given
- advanced-cluster-security/rhacs-scanner-db-slim-rhel8: no versions given
- advanced-cluster-security/rhacs-scanner-v4-db-rhel8: no versions given
- ansible-automation-platform/ee-minimal-rhel8: no versions given
- ansible-automation-platform/ee-minimal-rhel9: no versions given
- ansible-automation-platform-tech-preview/ee-minimal-rhel8: no versions given
- ansible-automation-platform-tech-preview/ee-minimal-rhel9: no versions given
- rhceph/rhceph-7-rhel9: no versions given
- rhceph/rhceph-8-rhel9: no versions given
- rhcertification/redhat-certification-baremetal: no versions given
- rhcertification/redhat-certification-system-ai: no versions given
- dirsrv/dirsrv-container-rhel10: no versions given
- python-ply: no versions given
- rhel10/keylime-registrar: no versions given
- rhel10/keylime-verifier: no versions given
- rhel8/httpd-24: no versions given
- rhel8/mariadb-1011: no versions given
- rhel8/mariadb-103: no versions given
- rhel8/mariadb-105: no versions given
- rhel8/mysql-80: no versions given
- rhel8/nginx-122: no versions given
- rhel8/nginx-124: no versions given
- rhel8/postgresql-12: no versions given
- rhel8/postgresql-13: no versions given
- rhel8/postgresql-15: no versions given
- rhel8/postgresql-16: no versions given
- rhel8/support-tools: no versions given
- rhel8/varnish-6: no versions given
- ubi8/httpd-24: no versions given
- ubi8/nginx-122: no versions given
- ubi8/nginx-124: no versions given
- rhel9/keylime-registrar: no versions given
- rhel9/keylime-verifier: no versions given
- rhelai3/bootc-aws-cuda-rhel9: no versions given
- rhelai3/bootc-azure-cuda-rhel9: no versions given
- rhelai3/bootc-cuda-rhel9: no versions given
- rhelai3/bootc-gcp-cuda-rhel9: no versions given
- and 334 more: see the JSON

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/bohmiiidd/Undocumented-RCE-in-PLY> (exploit, third-party-advisory)
- <https://github.com/tom025/ply_exploit_rejection> (exploit, mitigation, third-party-advisory)
- <https://github.com/bohmiiidd/Undocumument_RCE_PLY-yacc-CVE-2025-56005> (exploit, third-party-advisory)
- <https://github.com/tom025/ply_exploit_rejection/issues/1> (exploit)
- <http://www.openwall.com/lists/oss-security/2026/01/23/4> (exploit, mailing-list)
- <http://www.openwall.com/lists/oss-security/2026/01/28/5> (exploit, mailing-list)
- <http://www.openwall.com/lists/oss-security/2026/01/29/1> (exploit, mailing-list)
- <http://www.openwall.com/lists/oss-security/2026/01/23/5> (mailing-list)
- <http://www.openwall.com/lists/oss-security/2026/01/29/2> (mailing-list)
- <http://www.openwall.com/lists/oss-security/2026/01/30/1>
- <https://access.redhat.com/security/cve/CVE-2025-56005> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2431308> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-56005.json>

## Sources

- CVE List: [CVE-2025-56005](https://www.cve.org/CVERecord?id=CVE-2025-56005), CVE Terms of Use, modified 2026-09-17
- NVD: [CVE-2025-56005](https://nvd.nist.gov/vuln/detail/CVE-2025-56005), Public domain, modified 2026-09-17

---

Page: https://cve.day/CVE-2025-56005 · Whole record: https://cve.day/CVE-2025-56005.json · Rebuilt by cve.day 2026-11-25T22:59:10.728Z
