CVE-2026-129233
Medium 5.3No known exploitationFix availableNLTK: StreamBackedCorpusView constructor os.stat leaks out-of-root file existence, size, and mtime bypassing pathsec ENFORCE
Vendor advisory: GHSA-w674-vqhw-g3pg
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 28% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.0 until 3.10.4, StreamBackedCorpusView performs os.stat on a caller-supplied plain string path during construction before pathsec containment is enforced. The PathPointer branch used by in-tree corpus readers is validated, so exploitation requires application code to pass an attacker-influenced string directly to the public constructor. That string can identify an out-of-root path and disclose its existence, size, and modification time even though opening the file would be rejected. This issue is fixed in version 3.10.4.
Weakness: CWE-200, CWE-538
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| nltk | nltk | >= 3.10.0, < 3.10.4 | Not documented | CVE Program |
| pip | nltk | from 3.10.0 up to and including 3.10.3 | 3.10.4 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-w674-vqhw-g3pg (opens in a new tab)github-advisory
- https://github.com/nltk/nltk/commit/2c563b13f9dce7c15eefd4b03463e1b69b64f1f3 (opens in a new tab)x_refsource_misc
- https://github.com/nltk/nltk/commit/68434c0427f8d296f3adfddb518525038d1f7bfa (opens in a new tab)x_refsource_misc
- https://github.com/nltk/nltk/pull/3888 (opens in a new tab)x_refsource_misc
- https://github.com/nltk/nltk/releases/tag/v3.10.4 (opens in a new tab)x_refsource_misc
- https://github.com/nltk/nltk/security/advisories/GHSA-w674-vqhw-g3pg (opens in a new tab)x_refsource_confirm