CVE-2026-0846

8.6

NLTK Project · NLTK

A path traversal vulnerability in the nltk.util.filestring() function allows unauthenticated attackers to read arbitrary files from the host system.

Executive summary

An unauthenticated path traversal vulnerability in the NLTK library allows attackers to read sensitive system files, posing a significant risk to data confidentiality.

Vulnerability

The vulnerability exists within the filestring() function of the nltk.util module, which fails to properly sanitize user-supplied input. This flaw allows an unauthenticated attacker to perform absolute or path traversal operations to access unauthorized files on the server.

Business impact

The ability for an unauthenticated user to read arbitrary files can lead to the exposure of sensitive configuration data, credentials, or proprietary source code. Given the CVSS score of 8.6, this vulnerability represents a high-severity risk that could result in total compromise of the application environment and subsequent lateral movement within the network.

Remediation

Immediate Action: Update the NLTK package to version 3.9.3 or later via your package manager, such as pip install --upgrade nltk.

Proactive Monitoring: Monitor web server logs for suspicious URL patterns containing directory traversal sequences, such as double dots or unexpected absolute paths.

Compensating Controls: Deploy a Web Application Firewall (WAF) with rules configured to block common path traversal character sequences in incoming HTTP requests.

Exploitation status

Public Exploit Available: Yes, a public proof-of-concept exists via the referenced Huntr security report.

Analyst recommendation

The high CVSS score and the presence of a public proof-of-concept make this a priority for remediation. Administrators should verify their current version of NLTK and perform the update to version 3.9.3 immediately to prevent potential unauthorized file access.

More NLTK Project CVEs

Sources