Skip to main content

NLTK EUVDEUVD-2026-125226

| CVE-2026-126295 HIGH
Path Traversal (CWE-22)
7.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Influence application model-path input
  2. Delivery
    Pass crafted path to BllipParser
  3. Exploit
    Path bypasses pathsec validation
  4. Execution
    C extension opens attacker-chosen file
  5. Impact
    Sensitive 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

nltk 3.10.0 <3.10.4

Affected Packages

pypi nltk fix: 3.10.4

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

Vendor (VulnCheck) PRIMARY 7.0 HIGH
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
vuln.today AI 6.8 MEDIUM

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).

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 6.8 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 10:02 EUVD
CVE Published
Nov 13, 2026 - 09:36 cve.org
HIGH 7.0

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
NLTK is a very widely deployed Python NLP library across data/ML stacks
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

55
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Nltk

View all
CVE-2026-79657 CRITICAL POC
9.3 Aug 25

Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p

CVE-2026-78683 CRITICAL POC
9.4 Aug 25

Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic

CVE-2025-14009 HIGH POC
8.8 Feb 18

Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions through its data dow

CVE-2026-63312 HIGH POC
8.7 Aug 22

StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc

CVE-2026-62384 HIGH POC
8.7 Aug 22

Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to

CVE-2026-126297 HIGH POC
8.7 Nov 13

CPU exhaustion in NLTK's ConllCorpusReader.srl_instances() lets an attacker who supplies a crafted CoNLL SRL corpus pin

CVE-2026-126298 HIGH POC
8.7 Nov 13

CPU exhaustion in NLTK's Tree.chomsky_normal_form() right-factor binarization affects NLTK through 3.10.3 and lets remot

CVE-2026-126299 HIGH POC
8.7 Nov 13

Quadratic CPU exhaustion in NLTK's CCG lexicon parser (nltk.ccg.lexicon.fromstring, also re-exported as nltk.ccg.chart.f

CVE-2026-126303 HIGH POC
8.7 Nov 13

Denial of service in NLTK before 3.10.4 allows remote attackers to pin a CPU core and exhaust bounded worker pools by ca

CVE-2026-66393 HIGH POC
8.7 Aug 22

Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers

CVE-2026-62388 HIGH POC
8.7 Aug 22

Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse

CVE-2026-78681 HIGH POC
8.7 Aug 25

XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy