cve.bz

CVE-2025-56005 dabeaz ply: Deserialization of Untrusted Data

9.8 criticalExploit referenceEPSS 19%

Critical (9.8) in dabeaz ply. EPSS 19% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
19% (unchanged from 19% a week ago; 19% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2026-01-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-56005 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-56005?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-56005?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-56005 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
dabeaz:ply3.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14plyno fix listedDEBIAN-CVE-2025-56005
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 3 moreplyno fix listedUBUNTU-CVE-2025-56005
openSUSETumbleweedpython-jsonpath-ng1.8.0-1.1openSUSE-SU-2026:10418-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability rates as Important rather than Critical because it only affects applications using an undocumented parameter (picklefile) in legacy PLY versions 3.2-3.11, which was designed for an atypical use case (Jython environments with oversized parser tables). Exploitation requires the target application to have explicitly implemented this undocumented parameter in their code and depends on the attacker's ability to influence which pickle file gets loaded—whether through shared directory race conditions, configuration injection, supply chain compromise, or chaining with separate vulnerabilities like file upload or path traversal—making this a conditional, context-dependent vulnerability rather than a universally exploitable critical flaw.

Red Hat's mitigation

Exploitation requires an application to explicitly use PLY's undocumented `picklefile` parameter when calling `ply.yacc.yacc()` and requires an attacker to be able to supply or modify the pickle file that is loaded. Applications can avoid this issue by not using the undocumented `picklefile` parameter, which was intended only for an atypical use case (Jython environments with oversized parser tables); applications that do not pass this parameter are not exposed. If cached parser data must be loaded, ensure the pickle file is generated locally by the application and stored in a trusted location that untrusted users cannot write to or replace.

ProductPackageStateAdvisory
Fence Agents Remediation Operatorworkload-availability/fence-agents-remediation-rhel9-operatorNot affected
Migration Toolkit for Containersrhmtc/openshift-migration-hook-runner-rhel8Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-rhel8-operatorWill not fix
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-must-gather-rhel8Will not fix
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel9-operatorWill not fix
Migration Toolkit for Virtualizationmtv-candidate/mtv-must-gather-rhel8Will not fix
Migration Toolkit for Virtualizationmtv-candidate/mtv-rhel9-operatorWill not fix
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-agent-base-rhel8Affected
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel8Not affected
OpenShift Pipelinesopenshift-pipelines/pipelines-console-plugin-rhel8Will not fix
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel8Will not fix
OpenShift Service Mesh 2openshift-service-mesh/grafana-rhel8Not affected
OpenShift Service Mesh 2openshift-service-mesh/istio-cni-rhel8Not affected
OpenShift Service Mesh 2openshift-service-mesh/istio-must-gather-rhel9Not affected
OpenShift Service Mesh 2openshift-service-mesh/istio-operator-bundleNot affected
OpenShift Service Mesh 2openshift-service-mesh/istio-rhel8-operatorNot affected
OpenShift Service Mesh 2openshift-service-mesh/kiali-ossmc-rhel8Not affected
OpenShift Service Mesh 2openshift-service-mesh/pilot-rhel8Not affected
OpenShift Service Mesh 2openshift-service-mesh/proxyv2-rhel9Not affected
OpenShift Service Mesh 2openshift-service-mesh/ratelimit-rhel8Not affected
445 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-56005.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • gdfurr98/ply-cve-2025-56005-lab Harbor Check: matches CVE 0 stars, Python, created
    Lab demonstrating that CVE-2025-56005 is real and does allow arbitrary code execution at a minimum (the debate about RCE notwithstanding he…
  • tom025/ply_exploit_rejection Harbor Check: matches CVE 0 stars, created
    Arguments to reject CVE-2025-56005

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON