# CVE-2026-70626: NLTK before 3.9.4 Symlink Escape via CorpusReader

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-22T14:12:44.983Z
- Modified: 2026-10-14T13:10:00.187Z
- Also known as: GHSA-r6gq-whwq-mvg9, PYSEC-2026-3732
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- nltk nltk: before 3.9.4 (not affected: 3.9.4)
- nltk (PyPI): before 3.9.4

## Every score

- VulnCheck: CVSS:4.0 8.6 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.2 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-r6gq-whwq-mvg9> (exploit, evidence, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nltk-before-symlink-escape-via-corpusreader> (advisory, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-70626> (advisory)
- <https://github.com/nltk/nltk/pull/3522> (web)
- <https://github.com/nltk/nltk/commit/1b0e519e2324bc1a273d56edee63e44d0ad85b48> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/3.9.4> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3732.yaml> (web)

## Sources

- CVE List: [CVE-2026-70626](https://www.cve.org/CVERecord?id=CVE-2026-70626), CVE Terms of Use, modified 2026-08-24
- GitHub Advisory Database: [GHSA-r6gq-whwq-mvg9](https://github.com/advisories/GHSA-r6gq-whwq-mvg9), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-70626](https://nvd.nist.gov/vuln/detail/CVE-2026-70626), Public domain, modified 2026-10-14
- PyPA Advisory Database: [PYSEC-2026-3732](https://osv.dev/vulnerability/PYSEC-2026-3732), CC-BY-4.0, modified 2026-09-01

---

Page: https://cve.day/CVE-2026-70626 · Whole record: https://cve.day/CVE-2026-70626.json · Rebuilt by cve.day 2026-11-25T22:59:34.878Z
