Menu

CVE-2026-126304: CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader
📰

CVE-2026-126304: CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

DEV Community: cybersecurity·CVE Reports·3 days ago
#t402l2Dc
#devtocybersecurity#devto#dev#nltk#corpus
Reading 0:00
15s threshold

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

Vulnerability ID: CVE-2026-126304

CVSS Score: 8.7

Published: 2026-11-13

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

TL;DR

NLTK versions 3.10.0 through 3.10.3 fail to resolve symbolic links when initializing the YCOECorpusReader 'psd' and 'pos' subdirectories.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.