CVE-2026-70626
nltk: NLTK: Information disclosure via symlink escape in CorpusReader.open()
Overview
Description
NLTK versions before 3.9.4 contain a symlink escape vulnerability in CorpusReader.open() that allows local attackers to read arbitrary files outside the corpus root. The vulnerability exists because path validation is lexical and does not account for symlink resolution, enabling attackers to place symlinks inside the corpus root to access files outside the intended boundary.
Source: OX vulnerability database
Severity
6.2 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-59
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | nltk | <3.9.4 | 3.9.4 |
Open a package to see all its vulnerabilities.
Operating systems · 6 fixes
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | nltk | affected |
| 12 | nltk | affected |
| 13 | nltk | affected |
| 14 | nltk | 3.10.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nltk | affected |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| label-studio | 1.23.1-r0 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-70626
- github.com https://github.com/nltk/nltk
- github.com https://github.com/nltk/nltk/commit/1b0e519e2324bc1a273d56edee63e44d0ad85b48
- github.com https://github.com/nltk/nltk/pull/3522
- github.com https://github.com/nltk/nltk/releases/tag/3.9.4
- github.com https://github.com/nltk/nltk/security/advisories/GHSA-r6gq-whwq-mvg9
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3732.yaml
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-70626
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-70626
- www.vulncheck.com https://www.vulncheck.com/advisories/nltk-before-symlink-escape-via-corpusreader
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.