Vulnerability · Published Mar 4, 2026 · Assigned by @huntr_ai
CVE-2026-0847Path Traversal in nltk/nltk
High 7.5
In plain English
A high-severity path traversal in nltk/nltk from nltk. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | nltk | no fix listed | DEBIAN-CVE-2026-0847 |
| Debian:13 | nltk | no fix listed | DEBIAN-CVE-2026-0847 |
| Debian:14 | nltk | 3.9.3-1 | DEBIAN-CVE-2026-0847 |
| PyPI | nltk | 3.9.3 | PYSEC-2026-98 |
| PyPI | nltk | 3.9.3 | GHSA-68j8-pq59-fqgm |
| Ubuntu:25.10 | nltk | no fix listed | UBUNTU-CVE-2026-0847 |
| Ubuntu:26.10 | nltk | no fix listed | UBUNTU-CVE-2026-0847 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://huntr.com/bounties/fc69914f-36a9-4c18-8503-10013b39f966
- https://access.redhat.com/security/cve/CVE-2026-0847 vdb-entry, x_refsource_REDHAT
- RHBZ#2444608 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0847.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:10184 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19712 vendor-advisory, x_refsource_REDHAT