Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.9%top 44%

CVE-2026-0847: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in nltk nltk/nltk

0
High
VulnerabilityCVE-2026-0847cvecve-2026-0847cwe-22
Published: 03/04/2026 (03/04/2026, 18:25:30 UTC)
Source: CVE Database V5
Vendor/Project: nltk
Product: nltk/nltk

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.

CVSS v3.0

Score 8.6high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Affected software

nltk
pkg:pypi/nltk
Affected versions
<=3.9.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 08:24:13 UTC

Technical Analysis

CVE-2026-0847 is a path traversal vulnerability (CWE-22) affecting NLTK versions <=3.9.2. Multiple CorpusReader classes including WordListCorpusReader, TaggedCorpusReader, and BracketParseCorpusReader fail to properly sanitize or validate file paths, enabling attackers to traverse directories and read arbitrary files on the server. This vulnerability allows unauthorized access to sensitive files and may escalate to remote code execution when chained with other vulnerabilities. The CVSS 3.0 score is 8.6 (High), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact with limited integrity and availability impact. Red Hat has published advisories referencing this CVE but no explicit patch or fix details are provided in the input data.

Potential Impact

Successful exploitation allows an attacker to read arbitrary files on the affected system, potentially exposing sensitive information such as system files, SSH private keys, and API tokens. This unauthorized access can compromise confidentiality and may facilitate further attacks, including remote code execution if combined with other vulnerabilities. The vulnerability poses a high risk in environments processing user-controlled file inputs.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Red Hat has published advisories referencing CVE-2026-0847 but no explicit patch or fix details are provided in the available data. Users should monitor the vendor advisories for updates and apply any official fixes once available. Until a patch is applied, avoid processing untrusted file paths with the affected CorpusReader classes or implement strict input validation and sanitization to mitigate path traversal risks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
@huntr_ai
Date Reserved
2026-01-10T23:57:44.460Z
Cvss Version
3.0
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-0847","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10184","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","vendor":"Red Hat"}]

Threat ID: 69a87af1d1a09e29cb563d89

Added to database: 03/04/2026, 18:33:21 UTC

Last enriched: 07/15/2026, 08:24:13 UTC

Last updated: 07/31/2026, 19:22:57 UTC

Views: 225

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses