CVE-2026-71514
nltk: NLTK: Information disclosure via path traversal in CrubadanCorpusReader
Overview
Description
NLTK 3.9.4 through 3.10.2 contains a path traversal vulnerability in CrubadanCorpusReader. _load_lang_ngrams joins the corpus root with crubadan_code, the column-0 value read from the corpus table.txt mapping file, and opens the result with the builtin open() rather than the pathsec-validated opener, so os.path.join discards the root when that value is absolute and the read escapes the corpus directory without the containment check nltk.pathsec applies when ENFORCE is set. An attacker who controls a corpus package can disclose file contents outside the corpus root through lang_freq, limited to paths ending in -3grams.txt whose contents parse as token count lines.
Source: OX vulnerability database
Severity
3.3 · LOW
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Weakness: CWE-22
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | nltk | >=3.9.4, <3.10.3 | 3.10.3 |
Open a package to see all its vulnerabilities.
Operating systems · 8 fixes
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.3-r1 | |
| nemo | 2.7.3-r27 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | nltk | affected |
| 12 | nltk | affected |
| 13 | nltk | affected |
| 14 | nltk | 3.10.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nltk | affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.3-r1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-71514
- github.com https://github.com/nltk/nltk
- github.com https://github.com/nltk/nltk/blob/v3.10.2/nltk/corpus/reader/crubadan.py#L90-L98
- github.com https://github.com/nltk/nltk/commit/10d34b3f4fe3fec74b76527a409eb0acbac2e8ab
- github.com https://github.com/nltk/nltk/releases/tag/v3.10.3
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-71514
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-71514
- www.vulncheck.com https://www.vulncheck.com/advisories/nltk-through-path-traversal-via-crubadancorpusreader-pathsec-bypass
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.