CVE Professor
›
Back
CVE-2026-126304

CVE-2026-126304 — Nltk — CWE-59

HIGH CVSS 7.5 ⚡ EPSS 0.6% GitHub

CVE-2026-126304 is a HIGH severity security vulnerability (CWE-59) (CVSS 7.5/10 (EPSS: 0.6%)) affecting Nltk. Technical vector analysis shows that an attacker can exploit this flaw remotely over the network without authentication (PR:N) with zero user interaction (UI:N), allowing unauthorized disclosure of sensitive data (C:H).

📄 Official NVD / MITRE Original Record Text

## Summary `YCOECorpusReader` builds two nested corpus sub-readers whose roots are derived from `self.root.join("psd")` and `self.root.join("pos")` (nltk/corpus/reader/ycoe.py). Because `FileSystemPathPointer.join()` (nltk/data.py) performs a purely lexical containment check and never resolves symlinks, and because `CorpusReader.__init__` (nltk/corpus/reader/api.py) validates a sub-reader root only against the global NLTK data sandbox and not against the enclosing corpus root, a directory symlink named `psd` or `pos` planted inside a YCOE corpus lets the reader anchor its nested sub-readers outside the YCOE corpus root. An attacker who controls the contents of a YCOE corpus loaded under `pathsec.ENFORCE=True` can make `parsed_sents()`, `tagged_words()`, and related methods return file content from other locations inside the allowed data sandbox, defeating the per-corpus-root containment boundary the pathsec controls are meant to enforce. ## Root Cause NLTK's pathsec controls are designed to keep each corpus reader confined to its own corpus root. The scoped containment is enforced through `validate_path(..., required_root=self._root)` at read time. However, the containment invariant is violated at reader-construction time for nested readers: - `FileSystemPathPointer.join()` accepts a component that is a directory symlink because it only checks the joined string lexically (`os.path.normpath` plus a `startswith` prefix test) and never calls `resolve()`. - `CorpusReader.__in

Published 13.11.2026
ISO Date 2026-11-13
CVSS Version v3.1
Source GitHub
CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity None I:N
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.6%
30-day probability
In the 50. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation
🤖 Generating Deep AI Security Analysis…
Analyzing CVSS vector & CWE weakness structure…

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-126304
CVSS 7.5/10 · HIGH · 13.11.2026
CWE: CWE-59
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ## Summary

YCOECorpusReader builds two nested corpus sub-readers whose roots are derived from self.root.join("psd") and self.root.join("pos") (nltk/corpus/reader/ycoe.py). Because FileSystemPathPointer.join() (nltk/data.py) performs a purely lexical containment check and never resolves symlinks, and because CorpusReader.__init__ (nltk/corpus/reader/api.py) validates a sub-reader root…
Affected: nltk

⚡ ATTACK CHAIN
Remotely over internet | no authentication required | no user interaction | low complexity.

🌍 REAL WORLD IMPACT
All confidential data readable/stealable.

🛡️ REMEDIATION
→ Apply vendor security update for nltk.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-59
Affected Products (1)
nltk
References & Advisories (4)
Related CVEs
9.9
CVE-2026-130771
Incus before 7.6.0 fails to reject special files, hard links, or symlinks in backup or image metadata, allowin
8.6
CVE-2026-116637
A site administrator could modify files on the appliance host with root privileges and disclose private reposi
8.4
CVE-2026-55169
Open OnDemand is an open-source high-performance computing portal. Prior to 4.1.6 and 4.2.3, the Open OnDemand
6.4
CVE-2026-106096
A flaw was found in CRI-O. When the optional Linux LinkLogs feature is enabled, the host pod log directory is
6.3
CVE-2026-87850
nVision sends user's token via query parameters of GET requests. An attacker who obtains valid token can gain
5.0
CVE-2026-121717
fzf is a command-line fuzzy finder. Prior to 0.74.5, trigger-driven zsh completion in shell/completion.zsh use