Live threats

All CVEs / Nltk

CVE-2026-0846Nltk

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Mar 9, 2026
Updated
Jul 15, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-36, CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nltk.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI nltk < 3.9.3 3.9.3 pip install "nltk>=3.9.3"
PyPI nltk ≤ 3.9.2 no fixed version —

Per OSV / GitHub Advisories (GHSA-h8wq-7xc4-p3qx, PYSEC-2026-97). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nltknltk3.9.2

Official sources

References

Links published by the sources. Open them with care.