Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence application model-path input
-
DeliveryPass crafted path to BllipParser
-
ExploitPath bypasses pathsec validation
-
ExecutionC extension opens attacker-chosen file
-
ImpactSensitive file read or worker stalled
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Two concrete prerequisites must both hold: (1) the optional third-party bllipparser C extension is installed (pip install bllipparser), since BllipParser's native model loads are otherwise unavailable; and (2) the embedding application passes attacker-influenced input into one of the BllipParser model-path parameters - parser_model, reranker_features, or reranker_weights - or into the model_dir argument of from_unified_model_dir(). The flaw is NOT reachable through NLTK's own nltk.data.find() loading path, which enforces pathsec data-root confinement, so default deployments that load bundled models are unaffected. Primary limiting factors: no attack surface unless the application forwards untrusted paths into this specific API, the optional native extension must be present, and the vector is local (AV:L) rather than directly network-remote; actual content disclosure also depends on how the application surfaces parser output or errors, though file existence/size/open-behavior remain an oracle regardless. |
| Impact | This is a moderate-severity arbitrary file read (CWE-22/CWE-73) with a genuine but bounded real-world risk. The input CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L, score 7.0) indicates a LOCAL attack vector with high confidentiality impact and low availability impact - it is not a network-remote drive-by. Exploitation is strictly conditional: the optional third-party bllipparser C extension must be installed AND the embedding application must forward attacker-influenced input into a BllipParser model-path parameter, so AV:L correctly reflects that the attacker needs an application-level input channel rather than direct network reachability. No EPSS score and no KEV listing were provided, and the vulnerability is not in CISA KEV, so there is no CISA-confirmed active exploitation. The GHSA advisory includes a demonstrative proof-of-concept and structural source analysis, so a public PoC reference exists; it is not verified as working exploit code (the advisory notes the C extension must be installed to actually exercise it, and the demonstrated primitive is attacker control of which file is opened). The vuln.today Decision label is 'this_week', consistent with a prioritize-soon rather than emergency posture. Net: a real priority for anyone running NLTK's BllipParser with untrusted path input, but a low-urgency or non-applicable issue for the majority of NLTK deployments that never install bllipparser or never pass untrusted model paths - the high CVSS-for-a-library score overstates risk for typical default usage. |
| Exploit ScenarioDerived | An application using NLTK's BllipParser (with the optional bllipparser C extension installed) forwards a user- or request-derived 'model path' into the BllipParser constructor or from_unified_model_dir(). An attacker supplies a path such as /etc/passwd or a local credential file; because BllipParser skips NLTK's pathsec validation, the native extension opens and reads that file into process memory, disclosing its contents (or confirming existence/size via an oracle) outside the NLTK data roots. The same unchecked path can instead point at a FIFO, device, directory, or oversized file to stall or exhaust the parsing worker; a demonstrative PoC is published in the GHSA advisory but is not verified as a working weaponized exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Arbitrary file read in NLTK 3.10.0 through 3.10.3 allows an attacker who controls a model-path argument to BllipParser to make the optional bllipparser C extension open any file the process can reach, sidestepping the nltk.pathsec data-root confinement that every sibling tool wrapper applies. The flaw is only reachable in applications that forward untrusted input into parser_model, reranker_features, reranker_weights, or the model_dir argument of from_unified_model_dir(), and only when the optional bllipparser package is installed; deployments that load bundled models through nltk.data.find() are not on the vulnerable path. The assessed vector is local (AV:L, PR:N) with high confidentiality and low availability impact, and the GitHub advisory includes a public proof-of-concept snippet passing /etc/passwd as parser_model; it is not verified as working exploit code and no active exploitation is confirmed.
RemediationAI
Vendor-released patch: upgrade NLTK to 3.10.4, which is the first release within the fixed range and closes the unvalidated model-path flow in nltk/parse/bllip.py. Where upgrading must wait, the advisory's interim measure is to refuse untrusted input as any BllipParser model path and to load models only through nltk.data.find(), which already enforces pathsec data-root confinement - the trade-off is that callers relying on arbitrary filesystem model locations must relocate models into an NLTK data root. If BllipParser and reranker functionality are not needed, not installing the optional bllipparser C extension removes the native open primitive entirely, at the cost of losing that parser. For teams backporting the fix rather than upgrading, the upstream approach is to pass parser_model, reranker_features and reranker_weights through nltk.pathsec.validate_tool_path() with max_bytes=MAX_TOOL_MODEL_BYTES and require_private=True, matching CRFTagger.set_model_file(), and to construct the C-extension arguments from the returned strings so a path swapped after the check is not reopened; the same treatment must cover the paths derived inside from_unified_model_dir(). Because exploitation requires the application to forward attacker-influenced paths into this API, auditing call sites for user-controlled model paths prioritises the upgrade. Advisory and patch details: https://github.com/nltk/nltk/security/advisories/GHSA-fg9w-wfp5-j933.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NLTK 3.10.0 introduced a centralized I/O security module, nltk.pathsec, which confines file-backed resources to the allowed NLTK data roots. For paths handed to external tools and native extensions that perform their own OS-level open, it exposes validate_tool_path(), which runs name-safety checks, rejects option-shaped, URL-shaped and traversal inputs, opens the target with O_NOFOLLOW requiring a regular single-linked file, and returns the validated string the caller must use. CRFTagger.set_model_file(), HunposTagger, StanfordTagger and MaltParser all call it; nltk/parse/bllip.py does not - it imports only ParserI, safe_print and Tree, with zero pathsec references. The constructor parameters parser_model, reranker_features and reranker_weights flow unchanged from BllipParser.__init__ (nltk/parse/bllip.py:125) into self.rrp.load_parser_model() (line 164) and self.rrp.load_reranker_model() (lines 166-170), and from_unified_model_dir() (lines 218-255) reaches the same sink via get_unified_model_parameters() from the third-party bllipparser package, which performs no NLTK data-root validation. The root cause class is CWE-22 (path traversal), with the advisory additionally noting CWE-73 (external control of file name or path) and CWE-400 (uncontrolled resource consumption) because the missing guard also drops the non-regular-file and size checks, letting an attacker designate a FIFO, socket, device, directory or oversized file so the native load blocks or reads unbounded data into memory. Content disclosure depends on how the embedding application surfaces parser results or errors, though file existence, size and open behaviour remain an oracle regardless.
Know when Nltk gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
Local input-channel vector (AV:L), no privileges within NLTK (PR:N), reliable path control (AC:L); high confidentiality from arbitrary file read (C:H), no integrity impact, low availability from FIFO/device/oversize stalls (A:L).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
NLTK from 3.10.0 before 3.10.4 contains an arbitrary file read vulnerability in BllipParser that allows attackers to open files outside NLTK data roots by supplying unvalidated model paths. Attackers controlling parser_model, reranker_features, reranker_weights, or from_unified_model_dir() input can make the bllipparser C extension read sensitive files or block on FIFOs and devices.
Blast Radius
ecosystem impact- 6 pypi packages depend on nltk (6 direct, 0 indirect)
Ecosystem-wide dependent count for version 3.10.0.
Technical POC Analysis
CWE-22 (Improper Limitation of a Pathname to a Restricted Directory); the advisory also tags CWE-73 and CWE-400.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
NLTK versions 3.10.0 through 3.10.3 contain an arbitrary file read vulnerability (CVE-2026-126295) that could allow an attacker to access sensitive files on affected systems. This impacts applications that pass untrusted input to specific BllipParser model-path arguments and have the optional bllipparser package installed. Leadership should care because a breach could lead to unauthorized disclosure of confidential data, but the risk is limited to a specific configuration and requires local access.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p
Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic
Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions through its data dow
StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc
Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to
CPU exhaustion in NLTK's ConllCorpusReader.srl_instances() lets an attacker who supplies a crafted CoNLL SRL corpus pin
CPU exhaustion in NLTK's Tree.chomsky_normal_form() right-factor binarization affects NLTK through 3.10.3 and lets remot
Quadratic CPU exhaustion in NLTK's CCG lexicon parser (nltk.ccg.lexicon.fromstring, also re-exported as nltk.ccg.chart.f
Denial of service in NLTK before 3.10.4 allows remote attackers to pin a CPU core and exhaust bounded worker pools by ca
Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers
Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse
XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s
EUVD-2026-125226
GHSA-f7j6-hf97-9v99
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB