Live › vulnerability › CVE-2026-0847
NLTK up to and including 3.9.2 fails to validate file paths in several CorpusReader classes, so user-supplied file names can point outside the intended directory. An attacker who controls those inputs can read sensitive files on the server such as SSH keys and API tokens.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-11-04 03:16 UTC, 1h before NVD. All times on this page are UTC.
Teams that use NLTK in services where user input chooses which corpus file gets read, such as ML APIs, chatbots or NLP pipelines. Projects that only load fixed local corpora that no one outside the team can influence are much less exposed. The sources do not say whether default configurations are affected.
| Product | Ecosystem | Affected | Fixed in |
|---|---|---|---|
| nltk | pypi | <= 3.9.2 | 3.9.3 |
| nltk | vendor | <= 3.9.2 | – |
pip show nltk and treat anything at or below 3.9.2 as affected.3.9.3.Each row is the first time that source carried this signal. The analyst’s rows are its own findings.
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.
This page as .md · .json · in your agent: get_signal("CVE-2026-0847")
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.