CVE-2026-0847Nltk
High 7.5 No auth needed
Follow: this CVE · Nltk · Nltk We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Mar 4, 2026
- Updated
- Jul 15, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Nltk.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | nltk |
< 3.9.3 |
3.9.3 |
pip install "nltk>=3.9.3" |
| PyPI | nltk |
< 3.9.3 |
3.9.3 |
pip install "nltk>=3.9.3" |
Per OSV / GitHub Advisories (GHSA-68j8-pq59-fqgm, PYSEC-2026-98). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nltk | nltk | ≤ 3.9.2 |
Official advisories
- python311-nltk-3.9.3-1.1 on GA media · SUSE · openSUSE-SU-2026:10304-1 · Mar 7, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Exploit Vendor Advisory
- access.redhat.com
- access.redhat.com
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com