Skip to content

huntr

nltk/nltk

Every publicly disclosed report for nltk/nltk and what kind of bugs they were.

disclosed reports
10
most reported class
Path traversal
bug classes found
5
first disclosure
2021
Find nltk/nltk on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what nltk/nltk chose to make public.

Path traversal

nltk: Arbitrary File Read via Path Traversal in nltk.data.load() through Percent-Encoded Sequences

The NLTK library's data loading functions decode percent-encoded sequences after performing path safety checks, allowing an attacker to bypass validation and read arbitrary files outside the intended data directory. An attacker who controls the resource name can read any file the process can access, such as credentials or configuration files.

nltk/nltk

High
Misconfiguration

NLTK downloader allows cross-package resource and model poisoning

The NLTK downloader extracts package archives into shared namespaces like corpora/ and taggers/ rather than package-specific directories, and only checks integrity after extraction. This lets one package overwrite another package's trusted resources, and the changes take effect through normal NLTK APIs even after restarting the interpreter.

nltk/nltk

Medium
Path traversal

NLTK has Arbitrary File Read via Absolute Path Input in nltk.util.filestring()

The filestring() function in nltk.util opens files based on user-supplied paths without validation, allowing an attacker to read arbitrary files by providing absolute or traversal paths. This could expose sensitive system files when the function is used in web APIs or other interfaces that accept user input.

nltk/nltk

High
Path traversal

NLTK has a Zip Slip Vulnerability

The NLTK downloader extracts downloaded zip packages without validating paths, allowing a malicious package to write files outside the intended directory. If the package contains Python files such as __init__.py, these are executed on import, leading to arbitrary code execution.

nltk/nltk

Critical