CVE-2026-0847: nltk Path Traversal
Vulnerability summary
CVE-2026-0847 is a high (CVSS 8.6) Path Traversal vulnerability in nltk. EPSS estimates a 0.92% chance of exploitation in the next 30 days, higher than 59.4% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 04-03-2026PublishedVulnerability first disclosed.
- 16-09-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 5 sources · 2 versions- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated8.6HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
- NVDNIST8.6HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
EPSS trend
Probability
0.92%
Chance of exploitation in the next 30 days
Percentile
59%
Versus all other CVEs
30-day change
+0.02 pp
From 0.90% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (huntr.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Debian1 product
- nltkAll versions (No fix recorded) | < 3.9.3-1
Mageia1 product
- python-nltk< 3.9.3-1.mga9
Opensuse1 product
- python-nltk&distro=openSUSE Tumbleweed< 3.9.3-1.1
PyPI1 product
- nltk≤ 3.9.2 | < 3.9.3
Ubuntu1 product
- nltk< 2.0~b9-0ubuntu4.1~esm6 | < 3.1-1ubuntu0.1+esm4 | < 3.2.5-1ubuntu0.1+esm4 | < 3.4.5-2ubuntu0.1~esm4 | < 3.7-1ubuntu0.1~esm2 | < 3.8.1-1ubuntu0.1~esm2 | All versions (No fix recorded) | < 3.9.2-1ubuntu0.1~esm2
6 vendors · 7 products
References
21 linksShow all 21 references
- github.com/nltk/nltkPACKAGE