CVE catalog

CVE-2026-0846

A vulnerability in the `filestring()` function of the `nltk.util` module in nltk version 3.9.2 allows arbitrary file read due to improper validation of input paths. The function directly opens files s

[CVE catalog]

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

A vulnerability in the `filestring()` function of the `nltk.util` module in nltk version 3.9.2 allows arbitrary file read due to improper validation of input paths. The function directly opens files specified by user input without sanitization, enabling attackers to access sensitive system files by providing absolute paths or traversal paths. This vulnerability can be exploited locally or remotely, particularly in scenarios where the function is used in web APIs or other interfaces that accept user-supplied input.

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
Ubuntunltkpro3.9.1-2vulnerable
Ubuntunltkpro3.9.1-2build1vulnerable
Ubuntunltkpro3.9.2-1vulnerable
Ubuntunltkpro3.9.2-1ubuntu0.1~esm1vulnerable
Ubuntunltkpro3.9.2-1ubuntu0.1~esm2fixed

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
Ubuntunltkdebpro3.9.2-1ubuntu0.1~esm2Not reportedUSN-8302-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

Observed:

References