NLTK 3.10.2 Path Traversal via corpus-reader constructors
nltk
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nltk PyPI |
|
|
Original description
NLTK versions before 3.10.3 contain a path sandbox bypass vulnerability in corpus-reader constructors that allows attackers to read files outside the intended data root. Attackers can supply arbitrary corpus root paths to LinThesaurusCorpusReader and PanLexLiteCorpusReader constructors to access filesystem content and SQLite databases outside the pathsec sandbox boundary.
From the CVE record · VulnCheck
References
- github.com/nltk/nltk/security/advisories/GHSA-3gq4-3j92-5w49Vendor advisory
- vulncheck.com/advisories/nltk-path-traversal-via-corpus-reader-constructorsAdvisory
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/79xxx/CVE-2026-79674.json
- nvd.nist.gov/vuln/detail/CVE-2026-79674
- github.com/nltk/nltk/commit/bc007200d123c1a98d74c2eb230f5e06c53886b8
- github.com/nltk/nltk
- github.com/nltk/nltk/releases/tag/v3.10.3
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3736.yaml