# CVE-2026-71514: NLTK 3.9.4 through 3.10.2 Path Traversal via CrubadanCorpusReader pathsec Bypass

- Severity: Low 2.0 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-08-22T13:34:08.493Z
- Modified: 2026-10-14T19:10:00.297Z
- Also known as: GHSA-cv22-g7mw-8v73, PYSEC-2026-3790
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

NLTK 3.9.4 through 3.10.2 contains a path traversal vulnerability in CrubadanCorpusReader. _load_lang_ngrams joins the corpus root with crubadan_code, the column-0 value read from the corpus table.txt mapping file, and opens the result with the builtin open() rather than the pathsec-validated opener, so os.path.join discards the root when that value is absolute and the read escapes the corpus directory without the containment check nltk.pathsec applies when ENFORCE is set. An attacker who controls a corpus package can disclose file contents outside the corpus root through lang_freq, limited to paths ending in -3grams.txt whose contents parse as token count lines.

(As written by CVE List.)

## Affected

- nltk nltk: from 3.9.4 before 3.10.3; from 3.9.4 up to 3.10.2 (not affected: 3.10.3)
- nltk (PyPI): from 3.9.4 before 3.10.3

## Every score

- VulnCheck: CVSS:4.0 2.0 Low `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`

## References

- <https://github.com/nltk/nltk/commit/10d34b3f4fe3fec74b76527a409eb0acbac2e8ab> (fix, patch, web)
- <https://github.com/nltk/nltk> (package, product)
- <https://github.com/nltk/nltk/blob/v3.10.2/nltk/corpus/reader/crubadan.py#L90-L98> (fix, patch, technical-description, web)
- <https://www.vulncheck.com/advisories/nltk-through-path-traversal-via-crubadancorpusreader-pathsec-bypass> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-71514> (advisory)
- <https://github.com/nltk/nltk/releases/tag/v3.10.3> (web)
- <https://github.com/advisories/GHSA-cv22-g7mw-8v73> (advisory)

## Sources

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

---

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