CVE-2026-54293 NLTK: URL-Encoded Path Traversal in nltk.data.load() Allows Arbitrary Local File Read
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
23 packages: 3 fixed, 1 partially fixed, 19 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/nltk(Debian 12) | = 3.8-1; = 3.8.1-1; = 3.9.1-1; = 3.9.1-2 +6 more | No fix listed | No fix yet |
| debian/nltk(Debian 13) | = 3.9.1-2; = 3.9.2-1; = 3.9.3-1; = 3.10.0-1 +3 more | No fix listed | No fix yet |
| redhat ansible automation platform | All versions | No fix listed | No fix yet |
| redhat exploit intelligence | All versions | No fix listed | No fix yet |
| redhat openshift lightspeed | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-25/lightspeed-chatbot-rhel8(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/exploit-intelligence-tech-preview/vulnerability-analysis-rhel9(Red Hat exploit_intelligence 0) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-llama-stack-core-rhel9:1783701598(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-llama-stack-core-rhel9:1786635926(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1787073459(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-ta-lmes-job-rhel9:1787330903(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-ta-lmes-job-rhel9:1791470318(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9:1791785804(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1787330585(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| redhat openshift ai | < 1783701598; < 1786635926; < 1787073459; < 1787330585 +2 more | 1783701598, 1786635926, 1787073459, 1787330585, 1787330903 | Partially fixed |
| debian/nltk(Debian 14) | < 3.10.0-1; = 3.9.1-2; = 3.9.2-1; = 3.9.3-1 | 3.10.0-1 | Fixed |
| nltk | < 3.10.0; = < 3.10.0-rc1 | 3.10.0 | Fixed |
| pypi nltk(PyPI) | < 3.10.0; <= 3.9.4; = 0.8; = 0.9 +63 more | 3.10.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi nltk(PyPI) | < 3.10.0 | 3.10.0 |
| pypi nltk(PyPI) | = 0.8 | No fix listed |
| pypi nltk(PyPI) | = 0.9 | No fix listed |
| pypi nltk(PyPI) | = 0.9.3 | No fix listed |
| pypi nltk(PyPI) | = 0.9.4 | No fix listed |
| pypi nltk(PyPI) | = 0.9.5 | No fix listed |
| pypi nltk(PyPI) | = 0.9.6 | No fix listed |
| pypi nltk(PyPI) | = 0.9.7 | No fix listed |
| pypi nltk(PyPI) | = 0.9.8 | No fix listed |
| pypi nltk(PyPI) | = 0.9.9 | No fix listed |
| pypi nltk(PyPI) | = 2.0.1 | No fix listed |
| pypi nltk(PyPI) | = 2.0.1rc1 | No fix listed |
| pypi nltk(PyPI) | = 2.0.1rc2-git | No fix listed |
| pypi nltk(PyPI) | = 2.0.1rc3 | No fix listed |
| pypi nltk(PyPI) | = 2.0.1rc4 | No fix listed |
| pypi nltk(PyPI) | = 2.0.2 | No fix listed |
| pypi nltk(PyPI) | = 2.0.3 | No fix listed |
| pypi nltk(PyPI) | = 2.0.4 | No fix listed |
| pypi nltk(PyPI) | = 2.0.5 | No fix listed |
| pypi nltk(PyPI) | = 2.0b4 | No fix listed |
| pypi nltk(PyPI) | = 2.0b5 | No fix listed |
| pypi nltk(PyPI) | = 2.0b6 | No fix listed |
| pypi nltk(PyPI) | = 2.0b7 | No fix listed |
| pypi nltk(PyPI) | = 2.0b8 | No fix listed |
| pypi nltk(PyPI) | = 2.0b9 | No fix listed |
Show 88 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi nltk(PyPI) | = 3.0.0 | No fix listed |
| pypi nltk(PyPI) | = 3.0.0b1 | No fix listed |
| pypi nltk(PyPI) | = 3.0.0b2 | No fix listed |
| pypi nltk(PyPI) | = 3.0.1 | No fix listed |
| pypi nltk(PyPI) | = 3.0.2 | No fix listed |
| pypi nltk(PyPI) | = 3.0.3 | No fix listed |
| pypi nltk(PyPI) | = 3.0.4 | No fix listed |
| pypi nltk(PyPI) | = 3.0.5 | No fix listed |
| pypi nltk(PyPI) | = 3.1 | No fix listed |
| pypi nltk(PyPI) | = 3.2 | No fix listed |
| pypi nltk(PyPI) | = 3.2.1 | No fix listed |
| pypi nltk(PyPI) | = 3.2.2 | No fix listed |
| pypi nltk(PyPI) | = 3.2.3 | No fix listed |
| pypi nltk(PyPI) | = 3.2.4 | No fix listed |
| pypi nltk(PyPI) | = 3.2.5 | No fix listed |
| pypi nltk(PyPI) | = 3.3 | No fix listed |
| pypi nltk(PyPI) | = 3.4 | No fix listed |
| pypi nltk(PyPI) | = 3.4.1 | No fix listed |
| pypi nltk(PyPI) | = 3.4.2 | No fix listed |
| pypi nltk(PyPI) | = 3.4.3 | No fix listed |
| pypi nltk(PyPI) | = 3.4.4 | No fix listed |
| pypi nltk(PyPI) | = 3.4.5 | No fix listed |
| pypi nltk(PyPI) | = 3.5 | No fix listed |
| pypi nltk(PyPI) | = 3.5b1 | No fix listed |
| pypi nltk(PyPI) | = 3.6 | No fix listed |
| pypi nltk(PyPI) | = 3.6.1 | No fix listed |
| pypi nltk(PyPI) | = 3.6.2 | No fix listed |
| pypi nltk(PyPI) | = 3.6.3 | No fix listed |
| pypi nltk(PyPI) | = 3.6.4 | No fix listed |
| pypi nltk(PyPI) | = 3.6.5 | No fix listed |
| pypi nltk(PyPI) | = 3.6.6 | No fix listed |
| pypi nltk(PyPI) | = 3.6.7 | No fix listed |
| pypi nltk(PyPI) | = 3.7 | No fix listed |
| pypi nltk(PyPI) | = 3.8 | No fix listed |
| pypi nltk(PyPI) | = 3.8.1 | No fix listed |
| pypi nltk(PyPI) | = 3.9 | No fix listed |
| pypi nltk(PyPI) | = 3.9.1 | No fix listed |
| pypi nltk(PyPI) | = 3.9.2 | No fix listed |
| pypi nltk(PyPI) | = 3.9.3 | No fix listed |
| pypi nltk(PyPI) | = 3.9.4 | No fix listed |
| pypi nltk(PyPI) | = 3.9b1 | No fix listed |
| nltk | = < 3.10.0-rc1 | No fix listed |
| redhat openshift ai | < 1783701598 | 1783701598 |
| redhat openshift ai | < 1787330903 | 1787330903 |
| redhat openshift ai | < 1786635926 | 1786635926 |
| redhat openshift ai | < 1787073459 | 1787073459 |
| redhat openshift ai | < 1787330585 | 1787330585 |
| redhat exploit intelligence | All versions | No fix listed |
| redhat openshift lightspeed | All versions | No fix listed |
| redhat ansible automation platform | All versions | No fix listed |
| redhat openshift ai | All versions | No fix listed |
| redhat/rhoai/odh-llama-stack-core-rhel9:1783701598(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-ta-lmes-job-rhel9:1787330903(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-llama-stack-core-rhel9:1786635926(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1787073459(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1787330585(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-ta-lmes-job-rhel9:1791470318(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9:1791785804(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/exploit-intelligence-tech-preview/vulnerability-analysis-rhel9(Red Hat:exploit_intelligence:0) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/lightspeed-chatbot-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| pypi nltk(PyPI) | <= 3.9.4 | No fix listed |
| debian/nltk(Debian:12) | All versions | No fix listed |
| debian/nltk(Debian:12) | = 3.10.0-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.10.1-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.10.3-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.8-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.8.1-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.9.1-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.9.1-2 | No fix listed |
| debian/nltk(Debian:12) | = 3.9.2-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.9.3-1 | No fix listed |
| debian/nltk(Debian:13) | All versions | No fix listed |
| debian/nltk(Debian:13) | = 3.10.0-1 | No fix listed |
| debian/nltk(Debian:13) | = 3.10.1-1 | No fix listed |
| debian/nltk(Debian:13) | = 3.10.3-1 | No fix listed |
| debian/nltk(Debian:13) | = 3.9.1-2 | No fix listed |
| debian/nltk(Debian:13) | = 3.9.2-1 | No fix listed |
| debian/nltk(Debian:13) | = 3.9.3-1 | No fix listed |
| debian/nltk(Debian:14) | < 3.10.0-1 | 3.10.0-1 |
| debian/nltk(Debian:14) | = 3.9.1-2 | No fix listed |
| debian/nltk(Debian:14) | = 3.9.2-1 | No fix listed |
| debian/nltk(Debian:14) | = 3.9.3-1 | No fix listed |
| ubuntu/nltk(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:26.10) | All versions | No fix listed |
| nltk | < 3.10.0 | 3.10.0 |
References
- https://github.com/nltk/nltk/security/advisories/GHSA-p4gq-832x-fm9v exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/nltk/nltk/pull/3575 issue-tracking patch
- RHSA-2026:42644 patch vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2491486 issue-tracking
- github.com product
- github.com
- security.access.redhat.com
- RHSA-2026:65126 patch vendor-advisory
- RHSA-2026:60520 patch vendor-advisory
- RHSA-2026:84734 patch vendor-advisory
- www.cve.org
- github.com
- Debian Security Tracker CVE-2026-54293 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-38333 third-party-advisory