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…

CVE-2026-0846: CWE-36 Absolute Path Traversal in nltk nltk/nltk

0
High
VulnerabilityCVE-2026-0846cvecve-2026-0846cwe-36
Published: Mon Mar 09 2026 (03/09/2026, 19:19:09 UTC)
Source: CVE Database V5
Vendor/Project: nltk
Product: nltk/nltk

Description

CVE-2026-0846 is a high-severity absolute path traversal vulnerability in the filestring() function of the nltk. util module in nltk version 3. 9. 2. The vulnerability arises because the function opens files specified by user input without proper path validation or sanitization, allowing attackers to read arbitrary files on the system. This can be exploited remotely if the function is exposed via web APIs or other interfaces that accept user input. The vulnerability impacts confidentiality and availability, with a CVSS score of 8. 6. No known exploits are currently in the wild, but the risk is significant due to the ease of exploitation and potential exposure of sensitive data. Organizations using vulnerable nltk versions in environments accessible to untrusted users should prioritize patching or implementing strict input validation.

AI-Powered Analysis

AILast updated: 03/09/2026, 19:48:32 UTC

Technical Analysis

CVE-2026-0846 identifies a critical security flaw in the Natural Language Toolkit (nltk) library, specifically in the filestring() function within the nltk.util module of version 3.9.2. The vulnerability is classified as CWE-36, an absolute path traversal issue, where the function fails to properly validate or sanitize file path inputs before opening files. This allows an attacker to supply absolute or traversal paths (e.g., ../../etc/passwd) to read arbitrary files on the host system. The flaw can be exploited both locally and remotely, particularly in scenarios where the function is exposed through web APIs or other interfaces that accept user-controlled input. The CVSS v3.0 score of 8.6 reflects the high impact on confidentiality (complete file disclosure possible), moderate impact on integrity (limited to file read, no modification), and availability (potential denial of service by reading critical files). No authentication or user interaction is required, and the attack vector is network-based, making exploitation relatively straightforward. Although no known exploits have been reported in the wild, the vulnerability poses a significant risk to any system running the affected nltk version, especially those integrated into web-facing applications or services. The lack of patch links suggests that a fix may not yet be publicly available, emphasizing the need for immediate mitigation.

Potential Impact

The primary impact of CVE-2026-0846 is unauthorized disclosure of sensitive information due to arbitrary file read capabilities. Attackers can access configuration files, credentials, source code, or other sensitive data stored on the system, potentially leading to further compromise or data breaches. This can undermine confidentiality and may indirectly affect integrity and availability if critical system files are exposed or leveraged for subsequent attacks. Organizations using vulnerable nltk versions in production environments, especially those exposing NLP functionalities over the network, face increased risk of data leakage and reputational damage. The vulnerability could be exploited by attackers to gain insights into system configurations, escalate privileges, or craft targeted attacks. Given the widespread use of nltk in academia, research, and commercial NLP applications, the scope of affected systems is broad. The ease of exploitation without authentication and user interaction further elevates the threat level, making it a critical concern for organizations relying on vulnerable versions.

Mitigation Recommendations

1. Immediately upgrade nltk to a version where this vulnerability is patched once available. Monitor official nltk repositories and security advisories for updates. 2. Until a patch is released, implement strict input validation and sanitization on all user-supplied file paths before passing them to the filestring() function. Reject absolute paths and traversal sequences such as '../'. 3. Restrict access to any APIs or interfaces that utilize the vulnerable function to trusted users or internal networks only. 4. Employ application-layer firewalls or web application firewalls (WAFs) to detect and block malicious path traversal attempts. 5. Conduct thorough code reviews and security testing on applications using nltk to identify and remediate unsafe file handling practices. 6. Use containerization or sandboxing to limit the potential damage from exploitation by isolating the runtime environment. 7. Monitor system logs for unusual file access patterns indicative of exploitation attempts. 8. Educate developers about secure file handling and the risks of path traversal vulnerabilities to prevent similar issues in the future.

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:22:13.648Z
Cvss Version
3.0
State
PUBLISHED

Threat ID: 69af20b9ea502d3aa8b98ce9

Added to database: 3/9/2026, 7:34:17 PM

Last enriched: 3/9/2026, 7:48:32 PM

Last updated: 3/9/2026, 8:35:13 PM

Views: 7

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 in Console -> Billing 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