CVE-2026-0847
8.6NLTK · NLTK (Natural Language Toolkit)
A path traversal vulnerability in NLTK versions up to 3.9.2 allows unauthenticated attackers to perform arbitrary file reads via multiple CorpusReader classes.
Executive summary
The NLTK library contains a critical path traversal vulnerability that allows unauthenticated attackers to read sensitive system files, posing a significant risk to data confidentiality.
Vulnerability
This is a path traversal (CWE-22) vulnerability within multiple CorpusReader classes, such as WordListCorpusReader. The vulnerability allows an unauthenticated attacker to bypass directory restrictions and access arbitrary files on the host system.
Business impact
Successful exploitation permits unauthorized access to sensitive information, including system configuration files, SSH private keys, and API tokens. Given the high CVSS score of 8.6, this vulnerability represents a significant threat to infrastructure security, potentially enabling further exploitation, such as remote code execution, when integrated into machine learning or NLP processing pipelines.
Remediation
Immediate Action: As no official patch is currently available, users should restrict access to applications using the affected NLTK CorpusReader classes and sanitize all user-supplied input paths.
Proactive Monitoring: Monitor file access logs for unusual patterns, specifically attempts to access system directories or sensitive configuration files from the application user context.
Compensating Controls: Implement strict file system permissions for the application process to ensure it can only access required data directories, thereby limiting the scope of any potential traversal.
Exploitation status
Public Exploit Available: Yes, a public proof-of-concept repository exists on GitHub.
Analyst recommendation
The severity of this vulnerability is elevated by the availability of public proof-of-concept code and the broad potential for impact in automated processing environments. Security teams must prioritize identifying systems utilizing NLTK and implement strict input validation or network-level restrictions immediately until a formal vendor patch is released.