CVE-2026-0847: NLTK arbitrary file read through path traversal in CorpusReader classes
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-0847
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- nltkPyPINo LLM dependency detected · 47 tracked dependents
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online