CVE-2026-71514

Source
https://cve.org/CVERecord?id=CVE-2026-71514
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71514.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-71514
Downstream
Published
2026-08-22T13:34:08.493Z
Modified
2026-08-27T11:31:13.603711591Z
Severity
  • 2.0 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
NLTK 3.9.4 through 3.10.2 Path Traversal via CrubadanCorpusReader pathsec Bypass
Details

NLTK 3.9.4 through 3.10.2 contains a path traversal vulnerability in CrubadanCorpusReader. loadlangngrams joins the corpus root with crubadancode, 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71514.json",
    "cwe_ids": [
        "CWE-22"
    ],
    "cna_assigner": "VulnCheck"
}
References

Affected packages

Git / github.com/nltk/nltk

Affected ranges

Type
GIT
Repo
https://github.com/nltk/nltk
Events
Database specific
Show details
{
    "source": "AFFECTED_FIELD",
    "extracted_events": [
        {
            "introduced": "3.9.4"
        },
        {
            "fixed": "3.10.3"
        }
    ]
}

Affected versions

3.*
3.9.4
v.*
v.3.10.1
v3.*
v3.10.0
v3.10.0-rc1
v3.10.0-rc2
v3.10.1
v3.10.1-rc1
v3.10.1-rc2
v3.10.2
v3.10.2-rc1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71514.json"