Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2026-0846

nltk: NLTK: Arbitrary file read via improper path validation in `filestring()` function

Overview

Published
9 Mar 2026
Modified
15 Jul 2026
High CVE
1 Registry packages
1 OS packages
3 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Weakness: CWE-36, CWE-22

Affected packages · 1

Packages affected by CVE-2026-0846
EcosystemPackageVulnerableFixed in
PyPI nltk <3.9.3 3.9.3

Open a package to see all its vulnerabilities.

Operating systems · 10 fixes

debian 4 releases · 1 package

affected 3 fixed 1
nltk
debian fixes for CVE-2026-0846
ReleasePackageFixed in
11 nltk affected
12 nltk affected
13 nltk affected
14 nltk 3.9.3-1

echo 1 release · 1 package

affected 1
nltk
echo fixes for CVE-2026-0846
ReleasePackageFixed in
nltk affected

ubuntu 5 releases · 1 package

fixed 2 affected 3
nltk
ubuntu fixes for CVE-2026-0846
ReleasePackageFixed in
18.04-ESM nltk 3.2.5-1ubuntu0.1+esm4
20.04-ESM nltk 3.4.5-2ubuntu0.1~esm4
22.04 nltk affected
24.04 nltk affected
26.04 nltk affected

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.