Skip to main content

NLTK EUVDEUVD-2026-130426

| CVE-2026-129233 MEDIUM
Information Exposure (CWE-200)
2026-11-19 GitHub_M GHSA-w674-vqhw-g3pg
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Influence fileid string passed to constructor
  2. Exploit
    Reach os.stat on plain-string branch pre-validation
  3. Execution
    Read eagerly computed _eofpos size without iterating
  4. Impact
    Disclose file existence, size, and mtime across filesystem

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) a vulnerable NLTK version between 3.10.0 and 3.10.3 inclusive, and (2) application code that passes an attacker-influenced plain string directly to the public StreamBackedCorpusView(fileid, block_reader) constructor - the PathPointer branch used by all in-tree corpus readers is already validated and is NOT exploitable. No special NLTK configuration is needed: pathsec ENFORCE defaults to True and does not gate the constructor's os.stat. The primary LIMITING factor is this reachability constraint: NLTK's own corpus readers construct views from validated PathPointer objects, so a default NLTK pipeline is not affected; the oracle only opens when an application exposes the string-fileid entry point to untrusted path input. Impact is limited to metadata (existence, exact size, mtime, and OS-error-class discrimination); file content remains blocked by the sandboxed open.

Impact

This is a genuine but low-severity information-disclosure issue, not a high-urgency priority. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, base 5.3 Medium) encodes only a limited confidentiality impact with no integrity or availability effect, which matches the evidence: StreamBackedCorpusView's constructor calls os.stat on an unvalidated string fileid before pathsec containment is enforced, leaking existence, exact byte size (st_size), and modification time (st_mtime) of out-of-root files, while file CONTENT remains blocked by the sandboxed open. No EPSS score and no KEV status are provided in the input; exploitation status is therefore 'no public exploit identified as actively used' for in-the-wild activity, but a detailed, reproduced proof-of-concept IS published in the GHSA advisory (demonstrating size 1850 leaked for /etc/passwd), so the disclosure path is proven, not theoretical. No SSVC vector is supplied; the only decision signal is the vendor/aggregator priority label 'this_month' (not act_now or emergency), consistent with a real-but-bounded metadata oracle. The most important caveat, stated explicitly by the advisory itself: although the CVSS marks AV:N/PR:N, reachability is application-conditional - in-tree corpus readers pass validated PathPointer objects and take the guarded branch, so exploitation requires application code that hands an attacker-influenced plain string directly to the public constructor. The network/unauthenticated metrics describe the vulnerable code path's CVSS assumptions, not a guarantee that every NLTK deployment is remotely exploitable; verify whether your application exposes the StreamBackedCorpusView string constructor to untrusted input.

Exploit ScenarioDerived

An application uses NLTK (3.10.0-3.10.3) and constructs StreamBackedCorpusView with a fileid string derived from user input; an attacker supplies a path such as /etc/passwd and, without reading its contents, obtains confirmation the file exists plus its exact size and modification time, and can distinguish missing/permission-denied/not-a-directory via the error class. A working proof-of-concept is published in the GHSA advisory demonstrating the leak with pathsec ENFORCE=True (default). Attack complexity is low once the string reaches the constructor, but the attacker must be able to influence that specific application-level API call.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 19, 2026

Metadata disclosure in NLTK 3.10.0 through 3.10.3 allows unauthenticated remote attackers to probe arbitrary out-of-root filesystem paths through the public StreamBackedCorpusView constructor, because the class computes the file's end position with a bare os.stat on a caller-supplied plain string before the pathsec sandbox validates it. A successful probe reveals whether a file exists, its exact byte size, its modification time, and distinguishes ENOENT from EACCES and ENOTDIR via the error class; file content remains blocked by the sandboxed open. Exploitation is conditional on application code passing an attacker-influenced string directly to the constructor - NLTK's own corpus readers pass validated PathPointer objects and are not affected - and the advisory includes a public proof-of-concept reproducer that demonstrates the metadata leak rather than general-purpose exploit code. CISA KEV does not list this CVE, and the vendor-released fix is NLTK 3.10.4.

RemediationAI

Vendor-released patch: upgrade nltk to 3.10.4 (release tag https://github.com/nltk/nltk/releases/tag/v3.10.4, via PR https://github.com/nltk/nltk/pull/3888 and commits 2c563b13f9dce7c15eefd4b03463e1b69b64f1f3 and 68434c0427f8d296f3adfddb518525038d1f7bfa), which validates the plain-string fileid with nltk.pathsec.validate_path before any stat and defers the size computation until _open has vouched for the path. Note the behavioural change when upgrading: a fileid that fails containment is no longer stat'ed at construction, so the refusal surfaces as an exception at first open/iteration rather than in the constructor - callers that relied on the eager ValueError must handle it later. Until 3.10.4 can be deployed, there is no configuration-only mitigation, because pathsec ENFORCE already defaults to True and never gated the constructor stat; the actionable workaround is to stop passing untrusted path strings to StreamBackedCorpusView and instead wrap fileids in a validated PathPointer, accepting that this requires application code changes where the string entry point is currently exposed.

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's pathsec layer is a sandbox that confines filesystem access to configured data roots when nltk.pathsec.ENFORCE is True (the default). In nltk/corpus/reader/util.py, StreamBackedCorpusView.__init__ eagerly determines the end-of-file offset. On the PathPointer branch it calls PathPointer.file_size(), which is validated and is what all in-tree corpus readers use; on the plain-string branch it called os.stat(self._fileid).st_size with no validate_path, _secure_open, or required_root check. This is a residual metadata channel left by the fix for CVE-2026-63312, which routed the sibling content sink _open() through nltk.pathsec.open but did not bring the constructor's stat under the sandbox. The issue is classified CWE-200 (exposure of sensitive information); the advisory also notes CWE-538 and, for the fix, CWE-59, since a bare stat follows a symlink. The impact class is information exposure rather than content read: iterating the view still raises a pathsec PermissionError, so only existence, st_size, st_mtime and OS error-class discrimination leak. The fix commits 68434c042 (enforce corpus-root containment in StreamBackedCorpusView) and 2c563b13f (defer the corpus-view refusal to _open) validate the fileid through nltk.pathsec.validate_path at construction and move the size computation behind a successfully validated open; the same PR hardens the YCOE reader against psd/pos directory symlink escapes and extends pathsec to refuse str subclasses whose __str__ differs from their real path text.

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 (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 5.3 MEDIUM

Metadata-only disclosure (C:L, I:N, A:N) via an unvalidated constructor stat; AV:N/PR:N reflects the vulnerable code path's assumptions, though reachability is application-conditional.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 19:34 EUVD
CVE Published
Nov 19, 2026 - 17:17 cve.org
MEDIUM 5.3

DescriptionCVE.org

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.0 until 3.10.4, StreamBackedCorpusView performs os.stat on a caller-supplied plain string path during construction before pathsec containment is enforced. The PathPointer branch used by in-tree corpus readers is validated, so exploitation requires application code to pass an attacker-influenced string directly to the public constructor. That string can identify an out-of-root path and disclose its existence, size, and modification time even though opening the file would be rejected. This issue is fixed in version 3.10.4.

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
High
NLTK is a widely deployed Python NLP library across research and ML stacks
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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