CVE-2026-0847: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in nltk nltk/nltk
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.
AI Analysis
Technical Summary
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.
CVE-2026-0847: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in nltk 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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.