NLTK StreamBackedCorpusView leaks out-of-root file metadata
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200.
Summary
NLTK from 3.10.0 before 3.10.4 is affected. The StreamBackedCorpusView constructor calls os.stat on a caller-supplied string path before containment checks run, exposing sensitive information (CWE-200). If application code passes an attacker-influenced string to the constructor, an attacker can learn whether an out-of-root file exists, along with its size and modification time, even though opening the file is rejected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nltk | nltk | 3.10.0 to before 3.10.4 | 3.10.4 | Patch available | CNA |
| — | nltk (PyPI) | 3.10.0 to before 3.10.4 | 3.10.4 | Patch available | GHSA-w674-vqhw-g3pg |
- nltk Vendornltk Affected 3.10.0 to before 3.10.4 Fixed in 3.10.4 Patch available CNA
- nltk (PyPI) Vendor— Affected 3.10.0 to before 3.10.4 Fixed in 3.10.4 Patch available GHSA-w674-vqhw-g3pg
Remediation
Upgrade NLTK to version 3.10.4, which fixes the flaw for the nltk package and the PyPI package from 3.10.0 before 3.10.4. Red Hat lists no available plan for Lightspeed Core, OpenShift Lightspeed, Red Hat Ansible Automation Platform 2 and Red Hat OpenShift AI (RHOAI).
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
- Fix · CNA nltk (nltk) Fixed in 3.10.4
- Fix · GHSA-w674-vqhw-g3pg nltk (PyPI) Fixed in 3.10.4 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Lightspeed Core | Affected | No fix yet: Fix deferred |
| OpenShift Lightspeed | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
Timeline
- 2026-11-19 Threatist record created from CVE-2026-129233
- 2026-11-19 CISA SSVC decision points changed
- 2026-11-20 Alias added: GHSA-w674-vqhw-g3pg
- 2026-11-20 Fix available: PyPI/[email protected] · GHSA-w674-vqhw-g3pg
- 2026-11-20 CVSS score added · GHSA-w674-vqhw-g3pg
- 2026-11-20 Weakness changed · GHSA-w674-vqhw-g3pg
- 2026-11-20 7 new references · GHSA-w674-vqhw-g3pg
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
References
Other 6
- https://github.com/nltk/nltk/security/advisories/GHSA-w674-vqhw-g3pg
- https://github.com/nltk/nltk/pull/3888
- https://github.com/nltk/nltk/commit/2c563b13f9dce7c15eefd4b03463e1b69b64f1f3
- https://github.com/nltk/nltk/commit/68434c0427f8d296f3adfddb518525038d1f7bfa
- https://github.com/nltk/nltk/releases/tag/v3.10.4
- https://github.com/nltk/nltk
More nltk vulnerabilities
- TI-2026-95059 NLTK incomplete fix allows JVM sandbox bypass via launcher tokens CVSS 3.1CRITICAL 9.8
- TI-2026-00629 Arbitrary Code Execution in NLTK StanfordSegmenter via Untrusted JAR Loading CVSS 3.0CRITICAL 10.0
- TI-2025-12800 Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution CVSS 3.0CRITICAL 10.0
- TI-2026-55173 NLTK before 3.10.3 JVM Argument Injection via Per-Call Options CVSS 4.0CRITICAL 9.3
- TI-2026-55155 NLTK before 3.10.3 Remote Code Execution via Unsafe Pickle Deserialization CVSS 4.0CRITICAL 9.3
- TI-2026-91242 Symlink escape in NLTK YCOECorpusReader lets attackers read files CVSS 4.0HIGH 8.7
Sources
- CVE-2026-129233 · CVE Program
- CVE-2026-129233 · NVD
- FIRST EPSS
- GHSA-w674-vqhw-g3pg · GitHub Advisory Database · CC BY 4.0
- CVE-2026-129233 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences