Symlink escape in NLTK YCOECorpusReader lets attackers read files
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-59 and the CVSS impact.
Summary
NLTK from 3.10.0 before 3.10.4 contains a symlink escape flaw in YCOECorpusReader that lets attackers read files outside the corpus root (CWE-59). An attacker who controls a YCOE corpus and plants psd or pos directory symlinks can make parsed_sents() and tagged_words() return file contents from other corpora or temporary files within the NLTK data sandbox.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
NLTK from 3.10.0 before 3.10.4 contains a symlink escape vulnerability in YCOECorpusReader that allows attackers to read files outside the corpus root by planting psd or pos directory symlinks. Attackers controlling a YCOE corpus can make parsed_sents() and tagged_words() return file content from other corpora or temporary files within the NLTK data sandbox.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
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-qg35-44qx-7vrr |
- 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-qg35-44qx-7vrr
Remediation
Upgrade NLTK to version 3.10.4 or later, which fixes this issue in the nltk package on PyPI and in the nltk project.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA nltk (nltk) Fixed in 3.10.4
- Fix · GHSA-qg35-44qx-7vrr nltk (PyPI) Fixed in 3.10.4 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
nltk 3.10.4
10 records Highest priority Priority HIGH 2 HIGH, 2 MEDIUM, 6 LOW
Other records, highest priority first
- TI-2026-91241 NLTK denial of service in SteppingRecursiveDescentParser.parse()Priority HIGH 77
- TI-2026-91237 NLTK Quadratic-Time Denial of Service via CCG Lexicon fromstringPriority HIGH 77
- TI-2026-91233 Arbitrary file read in NLTK BllipParser via model pathsPriority MEDIUM 64
Timeline
- 2026-11-13 Threatist record created from CVE-2026-126304
- 2026-11-13 Alias added: GHSA-7r4r-6ppg-7ff8
- 2026-11-13 Alias added: GHSA-qg35-44qx-7vrr
- 2026-11-13 Fix available: PyPI/[email protected] · GHSA-qg35-44qx-7vrr
- 2026-11-13 CVSS score added · GHSA-qg35-44qx-7vrr
- 2026-11-13 Weakness changed · GHSA-qg35-44qx-7vrr
- 2026-11-13 7 new references · GHSA-qg35-44qx-7vrr
- 2026-11-14 EPSS moved to the 50th–90th percentile
References
Advisory 2
More nltk vulnerabilities
- 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-91241 NLTK denial of service in SteppingRecursiveDescentParser.parse() CVSS 4.0HIGH 8.7
- TI-2026-91237 NLTK Quadratic-Time Denial of Service via CCG Lexicon fromstring CVSS 4.0HIGH 8.7
Sources
- CVE-2026-126304 · CVE Program
- CVE-2026-126304 · NVD
- FIRST EPSS
- GHSA-7r4r-6ppg-7ff8 · GitHub Advisory Database · CC BY 4.0
- GHSA-qg35-44qx-7vrr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences