Skip to content
HighVulnerability

CVE-2026-0847: NLTK arbitrary file read through path traversal in CorpusReader classes

Identifier
CVE-2026-0847
Published
Record updated
View JSON
Affected
  • nltk <= 3.9.2
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.0%

Summary

CVE-2026-0847 affects NLTK versions up to and including 3.9.2. Several CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader, fail to sanitize or validate file paths, which lets an attacker traverse directories and read arbitrary files on the server. The flaw is especially serious where user-controlled file inputs are processed, such as in ML APIs, chatbots, or NLP pipelines, and it can expose system files, SSH private keys, and API tokens. The source notes it may escalate to remote code execution when combined with other vulnerabilities.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.