Symlink following in NLTK lets attackers read files outside the sandbox
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · 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.9.4 before 3.10.4 contains a symlink following flaw in nltk.sem.chat80.sql_query() that bypasses the pathsec data-root sandbox check (CWE-59). A local user with low privileges who can write into a trusted NLTK data root can plant a symbolic link that reads SQLite databases outside the sandbox.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
NLTK from 3.9.4 before 3.10.4 contains a symlink following vulnerability in nltk.sem.chat80.sql_query() that bypasses the pathsec data-root sandbox containment check. Attackers who can write into a trusted NLTK data root can plant a symbolic link to read SQLite databases outside the sandbox.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- 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.9.4 to before 3.10.4 | 3.10.4 | Patch available | CNA |
| — | nltk (PyPI) | 3.9.4 to before 3.10.4 | 3.10.4 | Patch available | GHSA-xmfg-f9cm-w86q |
- nltk Vendornltk Affected 3.9.4 to before 3.10.4 Fixed in 3.10.4 Patch available CNA
- nltk (PyPI) Vendor— Affected 3.9.4 to before 3.10.4 Fixed in 3.10.4 Patch available GHSA-xmfg-f9cm-w86q
Remediation
Upgrade NLTK to version 3.10.4, which fixes the issue in the nltk package on PyPI and in the nltk vendor product.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA nltk (nltk) Fixed in 3.10.4
- Fix · GHSA-xmfg-f9cm-w86q 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-126302
- 2026-11-13 Alias added: GHSA-w2j9-qh3j-4h63
- 2026-11-13 CISA SSVC decision points changed
- 2026-11-16 Alias added: GHSA-xmfg-f9cm-w86q
- 2026-11-16 Fix available: PyPI/[email protected] · GHSA-xmfg-f9cm-w86q
- 2026-11-16 CVSS score added · GHSA-xmfg-f9cm-w86q
- 2026-11-16 Weakness changed · GHSA-xmfg-f9cm-w86q
- 2026-11-16 3 new references · GHSA-xmfg-f9cm-w86q
References
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-126302 · CVE Program
- CVE-2026-126302 · NVD
- FIRST EPSS
- GHSA-w2j9-qh3j-4h63 · GitHub Advisory Database · CC BY 4.0
- GHSA-xmfg-f9cm-w86q · 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