CVE-2026-0846Nltk
High 7.5 No auth needed
Follow: this CVE · Nltk · Nltk We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Mar 9, 2026
- Updated
- Jul 15, 2026
- Category
- Application · Cross-platform
- 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.
What to do
- Apply the vendor's security update for Nltk.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| nltk | nltk | 3.9.2 |
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Exploit Vendor Advisory
- access.redhat.com
- access.redhat.com
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com