CVE-2026-70626
8.6
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| nltk | nltk | 0 < 3.9.4 | affected |
| nltk | nltk | 3.9.4 | unaffected |
Weaknesses
- CWE-59: Improper Link Resolution Before File Access ('Link Following')
References
- https://github.com/nltk/nltk/security/advisories/GHSA-r6gq-whwq-mvg9
- https://www.vulncheck.com/advisories/nltk-before-symlink-escape-via-corpusreader
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.