CVE-2026-71514 NLTK 3.9.4 through 3.10.2 Path Traversal via CrubadanCorpusReader pathsec Bypass
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
10 packages: 4 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/nltk(Debian 12) | = 3.8-1; = 3.8.1-1; = 3.9.1-1; = 3.9.1-2 +6 more | No fix listed | No fix yet |
| debian/nltk(Debian 13) | = 3.9.1-2; = 3.9.2-1; = 3.9.3-1; = 3.10.0-1 +3 more | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/nltk(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/nltk(Debian 14) | < 3.10.3-1; = 3.9.1-2; = 3.9.2-1; = 3.9.3-1 +2 more | 3.10.3-1 | Fixed |
| nltk | >= 3.9.4, <= 3.10.2 | after 3.10.2 | Fixed |
| pypi nltk | >= 3.9.4, < 3.10.3 | 3.10.3 | Fixed |
| pypi nltk(PyPI) | = 3.9.4; = 3.10.0; = 3.10.1; = 3.10.2 +1 more | 3.10.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi nltk(PyPI) | >= 3.9.4, < 3.10.3 | 3.10.3 |
| pypi nltk(PyPI) | = 3.10.0 | No fix listed |
| pypi nltk(PyPI) | = 3.10.1 | No fix listed |
| pypi nltk(PyPI) | = 3.10.2 | No fix listed |
| pypi nltk(PyPI) | = 3.9.4 | No fix listed |
| pypi nltk | >= 3.9.4, < 3.10.3 | 3.10.3 |
| debian/nltk(Debian:12) | All versions | No fix listed |
| debian/nltk(Debian:12) | = 3.10.0-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.10.1-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.10.3-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.8-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.8.1-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.9.1-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.9.1-2 | No fix listed |
| debian/nltk(Debian:12) | = 3.9.2-1 | No fix listed |
| debian/nltk(Debian:12) | = 3.9.3-1 | No fix listed |
| debian/nltk(Debian:13) | All versions | No fix listed |
| debian/nltk(Debian:13) | = 3.10.0-1 | No fix listed |
| debian/nltk(Debian:13) | = 3.10.1-1 | No fix listed |
| debian/nltk(Debian:13) | = 3.10.3-1 | No fix listed |
| debian/nltk(Debian:13) | = 3.9.1-2 | No fix listed |
| debian/nltk(Debian:13) | = 3.9.2-1 | No fix listed |
| debian/nltk(Debian:13) | = 3.9.3-1 | No fix listed |
| debian/nltk(Debian:14) | < 3.10.3-1 | 3.10.3-1 |
| debian/nltk(Debian:14) | = 3.10.0-1 | No fix listed |
Show 9 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/nltk(Debian:14) | = 3.10.1-1 | No fix listed |
| debian/nltk(Debian:14) | = 3.9.1-2 | No fix listed |
| debian/nltk(Debian:14) | = 3.9.2-1 | No fix listed |
| debian/nltk(Debian:14) | = 3.9.3-1 | No fix listed |
| ubuntu/nltk(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/nltk(Ubuntu:26.10) | All versions | No fix listed |
| nltk | >= 3.9.4, <= 3.10.2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- Patch Commit patch
- github.com product
- github.com patch technical-description
- github.com
- VulnCheck Advisory: NLTK 3.9.4 through 3.10.2 Path Traversal via CrubadanCorpusReader pathsec Bypass third-party-advisory vendor-advisory
- github.com vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2521318 issue-tracking
- www.cve.org
- Debian Security Tracker CVE-2026-71514 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-64295 third-party-advisory