CVE-2026-62385
PoC nichePath traversal in NLTK FrameNet/NKJP readers parses XML outside corpus root
NLTK 3.9.4's FrameNetCorpusReader (frame_by_name, doc, lu) and NKJPCorpusReader.header build XML filenames from caller-controlled selectors or trusted-looking index state without enforcing the corpus-root boundary, allowing path traversal. An attacker who can influence frame names, document filenames, LU ids, or NKJP file identifiers — or who can poison the fulltext index state — can cause NLTK to parse attacker-chosen XML files located outside the trusted corpus root and return that parsed content through normal reader responses. The practical gain is information disclosure: the CVSS 4.0 score of 8.2 assigns high confidentiality impact (no privilege or user interaction required, though attack complexity is high); integrity and availability are unaffected. Only applications that use these specific FrameNet or NKJP reader entrypoints in NLTK 3.9.4 and pass attacker-influenced inputs are affected; current source (v3.10.0-rc2) rejects the same payloads with explicit path-safety errors. There is no known public PoC, the issue is not in CISA KEV, and EPSS estimates a 0.4% probability of exploitation within 30 days, so no in-the-wild exploitation is currently known.
What to do: Upgrade to NLTK 3.10.0, which adds the path-safety rejections that keep these reader paths confined to the corpus root. If upgrading immediately, audit whether your application exposes frame_by_name, doc, lu, or NKJP header calls to attacker-influenced selectors or index state, and validate/sanitize path components there. Reference remediation follows the root-confinement model used by CorpusReader.open() and nltk.pathsec.
| NLTK (Natural Language Toolkit) project / nltk on PyPI NLTK — FrameNetCorpusReader and NKJPCorpusReader XML readers | 3.9.4 (published stable release confirmed affected; patched in 3.10.0) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
NLTK versions before 3.10.0 contain a path traversal vulnerability in FramenetCorpusReader and NKJPCorpusReader that allows attackers to parse XML files outside the corpus root by supplying unsafe selectors or poisoned index state. Attackers can exploit frame_by_name, doc, lu, and header methods with crafted parameters to read arbitrary XML files accessible to the application.
- Vendors
- nltk
- Products
- nltk
- Ecosystems
- pip
- Weakness
- CWE-73
- Vector
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- GHSA
- GHSA-568f-pv23-39p4 (high)
In the news0 stories
No ingested article mentions this CVE yet.