CVE catalog

CVE-2026-0847

A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and Brack

[CVE catalog]

Severity
High · CVSS 8.6
Published
Source
[NVD] · [CVE record]
EPSS
0.94% · Oct 25, 2026

A vulnerability in NLTK versions up to and including 3.9.2 allows arbitrary file read via path traversal in multiple CorpusReader classes, including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader. These classes fail to properly sanitize or validate file paths, enabling attackers to traverse directories and access sensitive files on the server. This issue is particularly critical in scenarios where user-controlled file inputs are processed, such as in machine learning APIs, chatbots, or NLP pipelines. Exploitation of this vulnerability can lead to unauthorized access to sensitive files, including system files, SSH private keys, and API tokens, and may potentially escalate to remote code execution when combined with other vulnerabilities.

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 reportedvulnerable
CpenltkNot reported3.8.1-1ubuntu0.1~esm2fixed
Cpepython3-nltkNot reported3.8.1-1ubuntu0.1~esm2fixed
Opensusepython-nltktumbleweed3.9.3-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannltksourcesid3.9.3-1not yet assignedNot reportedNot reported
Debiannltksourceforky3.9.3-1not yet assignedNot reportedNot reported
Debiannltksourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiannltksourcebookworm(unfixed)not yet assignedNot reportedNot reported
CpenltkcpeNot reported3.8.1-1ubuntu0.1~esm2Not reportedNot reportedNot reported
Cpepython3-nltkcpeNot reported3.8.1-1ubuntu0.1~esm2Not reportedNot reportedNot reported
Opensusepython-nltkrpmtumbleweed3.9.3-1.1Not reportedOPENSUSE-SU-2026:10304-1Not 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

      nvd · nltk · debian · bookworm; nvd · nltk · debian · 12

    • 3.8-1 · all · bookworm

      Affected

      nvd · nltk · debian · bookworm; nvd · nltk · debian · 12

[Debian 13 (Trixie)]

  • [python3-nltk]Affected

    Source package: [nltk]

    Details (2)
    • 3.9.1-2 · all · trixie

      Affected

      nvd · nltk · debian · 13

    • 3.9.1-2 · all · trixie

      Affected

      nvd · nltk · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-nltk]

    Details (1)
    • 3.10.3-1.1 · noarch · tumbleweed

      Unknown · Fixed: 3.9.3-1.1

      Version impact unknown

      nvd · python-nltk · opensuse · tumbleweed

  • Source package: [python-nltk]

    Details (1)
    • 3.10.3-1.1 · noarch · tumbleweed

      Unknown · Fixed: 3.9.3-1.1

      Version impact unknown

      nvd · python-nltk · opensuse · tumbleweed

Observed:

References