CVE catalog

CVE-2026-71514

nltk: CVE-2026-71514

[CVE catalog]

Severity
Low · CVSS 2.5CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.17% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannltksid3.10.3-1fixed
Debiannltkforky3.10.3-1fixed
Debiannltktrixie3.9.1-2vulnerable
Debiannltkbookworm3.8-1vulnerable
CpenltkNot reportedNot reportedunknown
PyPInltkNot reported3.10.3fixed
PyPInltkNot reported3.10.3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannltksourcesid3.10.3-1not yet assignedNot reportedNot reported
Debiannltksourceforky3.10.3-1not yet assignedNot reportedNot reported
Debiannltksourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiannltksourcebookworm(unfixed)not yet assignedNot reportedNot reported
PyPInltkPyPINot reported3.10.3Not reportedPYSEC-2026-3790Not reported
PyPInltkPyPINot reported3.10.3Not reportedGHSA-CV22-G7MW-8V73Not reported

Notes

[trixie] nltk: Minor issue [bookworm] nltk: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-nltk]Affected

    Source package: [nltk]

    Details (2)
    • 3.8-1 · all · bookworm

      Affected

      dsa · nltk · debian · bookworm

    • 3.8-1 · all · bookworm

      Affected

      dsa · nltk · debian · bookworm

Observed:

References