CVE-2026-0847

high
Published 2026-03-04 · Modified 2026-05-20
CVSS v3
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v2
VIR risk
7.5

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.

Predictions

Exploit likelihood
83%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2026-0847

vendor Authored 2026-05-27

Vendor advisory: security@huntr.dev — https://huntr.com/bounties/fc69914f-36a9-4c18-8503-10013b39f966

OS impact

OSVersionStatusFixed in
debian debianbookwormaffected
debian debianbullseyeaffected
debian debianforkyfixed3.9.3-1
debian debiansidfixed3.9.3-1
debian debiantrixieaffected

Package impact

EcosystemPackageVulnerableFixed
python PyPInltk<=3.9.2
python PyPInltk<3.9.33.9.3
PIPnltk<= 3.9.2

Application impact

VendorProductVersionsFixed
nltknltk{"endIncluding":"3.9.2"}

References

CWEs

CWE-22

Verify integrity in audit chain (admin only). AS-IS.