Description
NLTK versions before 3.10.3 contain a path traversal vulnerability in corpus readers that reopen root-derived paths using built-in open() instead of nltk.pathsec.open(), allowing symlinks to escape trusted roots. Attackers who stage symlinked corpus files under a trusted data root can disclose outside-root content through normal corpus reader methods like channels(), domains(), and synonyms().
Metrics
CVSS 3.1 5.9/10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| nltk | nltk | < 3.10.3 |
References
- https://github.com/nltk/nltk/security/advisories/GHSA-p4rw-rvv2-7xwrExploit, Vendor Advisory
- https://www.vulncheck.com/advisories/nltk-before-path-traversal-via-symlink-bypassThird Party Advisory
- https://github.com/nltk/nltk/security/advisories/GHSA-p4rw-rvv2-7xwrExploit, Vendor Advisory
Timeline
- Published
- Aug 25, 2026
- Last modified
- Aug 31, 2026
- NVD status
- Analyzed