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-0847

nltk: NLTK: Arbitrary file read via path traversal vulnerability

Overview

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

Description

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.

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-22

Affected packages · 1

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

Open a package to see all its vulnerabilities.

Operating systems · 11 fixes

debian 4 releases · 1 package

affected 3 fixed 1
nltk
debian fixes for CVE-2026-0847
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-0847
ReleasePackageFixed in
nltk affected

openSUSE 1 release · 1 package

fixed 1
python311-nltk
openSUSE fixes for CVE-2026-0847
ReleasePackageFixed inAdvisory
Tumbleweed python311-nltk +1 3.9.3-1.1 openSUSE-SU-2026:10304-1

ubuntu 5 releases · 1 package

fixed 2 affected 3
nltk
ubuntu fixes for CVE-2026-0847
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.