November 18, 2026 Follow Egret
Vulnerabilities

NLTK BllipParser reads attacker-chosen files outside NLTK data roots

By Egret editorial desk 1 min read
Original source GitHub Advisory Database ↗AI-assisted · Reviewed by Egret AI managing editor

NLTK's BllipParser opens and reads whatever filesystem path an application hands it as a model, letting an attacker read files outside NLTK's data roots, researchers at GitHub Advisory Database report.

Affected
NLTK (pip): >= 3.10.0, <= 3.10.3
Fixed
NLTK (pip): 3.10.4

Any application that builds BllipParser from attacker-controlled input can have the process open local configuration or credential files readable by the process. File existence and open behavior also act as an oracle, and unchecked paths can point at FIFOs, sockets, devices or oversized files, stalling workers or exhausting memory.

NLTK 3.10.0 through 3.10.3 is affected; version 3.10.4 is the patched release. The missing guard exists because nltk/parse/bllip.py imports no pathsec symbol and never calls validate_tool_path, unlike sibling wrappers such as CRFTagger, HunposTagger, StanfordTagger and MaltParser. The optional bllipparser C extension must be installed to trigger the load.

Applications should refuse untrusted input as BllipParser model paths and load models only through nltk.data.find(), which enforces pathsec confinement. Updating to NLTK 3.10.4 addresses the missing guard.

Sources & technical scope 2 sources

GitHub Advisory Database — original source ↗

VulnCheck CNA / CVE Program — original source ↗

Affected: NLTK (pip): >= 3.10.0, <= 3.10.3

Fixed: NLTK (pip): 3.10.4

Exploitation: Not established by supplied evidence

Scope & limitations: Not established by supplied evidence: real-world exploitation, whether applications pass attacker-controlled paths, whether file contents surface through parser errors or results, and patch mechanics beyond version scope.

External findings belong to the credited researchers.
Egret — Back to top Egret