Skip to content

CVE-2026-71514 NLTK 3.9.4 through 3.10.2 Path Traversal via CrubadanCorpusReader pathsec Bypass

LowCVSS 2.0 EPSS 0.17%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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
ProductAffected versionsFixed 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