Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence fileid string passed to constructor
-
ExploitReach os.stat on plain-string branch pre-validation
-
ExecutionRead eagerly computed _eofpos size without iterating
-
ImpactDisclose 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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'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
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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- 6 pypi packages depend on nltk (6 direct, 0 indirect)
Ecosystem-wide dependent count for version 3.10.0.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-130426
GHSA-w674-vqhw-g3pg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB