high6.2
CVE-2026-70626
NLTK versions before 3.9.4 contain a symlink escape vulnerability in CorpusReader.open() that allows local attackers to read arbitrary files outside the corpus…
Impact
NLTK versions before 3.9.4 contain a symlink escape vulnerability in CorpusReader.open() that allows local attackers to read arbitrary files outside the corpus root. The vulnerability exists because path validation is lexical and does not account for symlink resolution, enabling attackers to place symlinks inside the corpus root to access files outside the intended boundary.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | nltk | <= 3.9.3 | 3.9.4 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Nltk | Nltk | before 3.9.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-r6gq-whwq-mvg9
- https://github.com/nltk/nltk/security/advisories/GHSA-r6gq-whwq-mvg9
- https://nvd.nist.gov/vuln/detail/CVE-2026-70626
- https://github.com/nltk/nltk/pull/3522
- https://github.com/nltk/nltk/commit/1b0e519e2324bc1a273d56edee63e44d0ad85b48
- https://github.com/nltk/nltk/releases/tag/3.9.4
- https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3732.yaml
- https://www.vulncheck.com/advisories/nltk-before-symlink-escape-via-corpusreader