# CVE-2026-54293: NLTK: URL-Encoded Path Traversal in nltk.data.load() Allows Arbitrary Local File Read

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- 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): 0.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-16T14:34:15.000Z
- Modified: 2026-09-10T03:51:09.128Z
- Also known as: GHSA-p4gq-832x-fm9v, PYSEC-2026-2078
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.0-rc1, nltk.data.load() in NLTK is vulnerable to path traversal via URL-encoded path separators and traversal segments when using the nltk: URL scheme. The unsafe-path regex check is performed before url2pathname() decodes the %xx sequences (a classic decode-after-check / TOCTOU-style flaw), allowing an attacker to bypass the protection documented in NLTK's SECURITY.md and read arbitrary files from the filesystem. While literal traversal strings such as ../../../etc/passwd are correctly blocked, encoded variants such as %2fetc%2fpasswd, %2e%2e%2f..., and ..%2f..%2f slip past the regex and are subsequently decoded into a real filesystem path. This vulnerability is fixed in 3.10.0-rc1.

(As written by CVE List.)

## Affected

- nltk nltk: < 3.10.0-rc1; before 3.10.0
- rhoai/odh-llama-stack-core-rhel9: no versions given (not affected: from 1783701598 before *; from 1786635926 before *)
- rhoai/odh-ta-lmes-job-rhel9: no versions given (not affected: from 1787330903 before *)
- rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9: no versions given (not affected: from 1787073459 before *)
- rhoai/odh-trustyai-nemo-guardrails-server-rhel9: no versions given (not affected: from 1787330585 before *)
- exploit-intelligence-tech-preview/vulnerability-analysis-rhel9: no versions given
- openshift-lightspeed/lightspeed-ocp-rag-rhel9: no versions given
- openshift-lightspeed/lightspeed-service-api-rhel9: no versions given
- openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9: no versions given
- ansible-automation-platform-25/lightspeed-chatbot-rhel8: no versions given
- rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9: no versions given
- rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9: no versions given
- nltk (PyPI): before 3.10.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-p4gq-832x-fm9v> (exploit, evidence, vendor-advisory, web)
- <https://github.com/nltk/nltk/pull/3575> (fix, issue-tracking, patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-54293> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2491486> (issue-tracking, report, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54293.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:42644> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:65126> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:60520> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54293> (advisory)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-2078.yaml> (web)

## Sources

- CVE List: [CVE-2026-54293](https://www.cve.org/CVERecord?id=CVE-2026-54293), CVE Terms of Use, modified 2026-09-09
- GitHub Advisory Database: [GHSA-p4gq-832x-fm9v](https://github.com/advisories/GHSA-p4gq-832x-fm9v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54293](https://nvd.nist.gov/vuln/detail/CVE-2026-54293), Public domain, modified 2026-09-09
- PyPA Advisory Database: [PYSEC-2026-2078](https://osv.dev/vulnerability/PYSEC-2026-2078), CC-BY-4.0, modified 2026-07-08

---

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