CVE-2026-0847 Path Traversal in nltk/nltk
- Published
- Updated
- Exploit status
- No public exploit known
Description
A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader. These classes fail to properly sanitize or validate file paths, enabling attackers to traverse directories and access sensitive files on the server. This issue is particularly critical in scenarios where user-controlled file inputs are processed, such as in machine learning APIs, chatbots, or NLP pipelines. Exploitation of this vulnerability can lead to unauthorized access to sensitive files, including system files, SSH private keys, and API tokens, and may potentially escalate to remote code execution when combined with other vulnerabilities.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi nltk(PyPI) | < 3.9.3 | 3.9.3 |
| 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 83 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.9b1 | No fix listed |
| nltk/nltk | <= latest | No fix listed |
| redhat openshift ai | < 1775144403 | 1775144403 |
| redhat openshift ai | < 1778262893 | 1778262893 |
| redhat openshift ai | < 1778263054 | 1778263054 |
| redhat lightspeed core | All versions | No fix listed |
| redhat openshift lightspeed | All versions | No fix listed |
| redhat ansible automation platform | = 2 | No fix listed |
| redhat ansible automation platform | All versions | No fix listed |
| redhat openshift ai | All versions | 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.9.3-1 | 3.9.3-1 |
| debian/nltk(Debian:14) | = 3.9.1-2 | No fix listed |
| debian/nltk(Debian:14) | = 3.9.2-1 | No fix listed |
| pypi nltk(PyPI) | <= 3.9.2 | No fix listed |
| ubuntu/nltk(Ubuntu:22.04) | < 3.7-1ubuntu0.1~esm2 | 3.7-1ubuntu0.1~esm2 |
| redhat/rhoai/odh-llama-stack-core-rhel9:1775144403(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9:1778262893(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1778263054(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9(Red Hat:openshift_lightspeed:1) | 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/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhoai/odh-ta-lmes-job-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:24.04) | < 3.8.1-1ubuntu0.1~esm2 | 3.8.1-1ubuntu0.1~esm2 |
| ubuntu/nltk(Ubuntu:26.04) | < 3.9.2-1ubuntu0.1~esm2 | 3.9.2-1ubuntu0.1~esm2 |
| ubuntu/nltk(Ubuntu:26.10) | All versions | No fix listed |
| nltk | <= 3.9.2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- RHSA-2026:10184 patch vendor-advisory
- RHSA-2026:19712 patch vendor-advisory
- Red Hat CVE page vdb-entry vendor-advisory
- RHBZ#2444608 issue-tracking
- github.com product
- github.com
- huntr.com exploit vendor-advisory
- security.access.redhat.com
- github.com vendor-advisory
- Debian Security Tracker CVE-2026-0847 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8302-1 vendor-advisory
- www.cve.org