CERT24CVE-2026-126304: Symlink escape in NLTK YCOECorpusReaderLoading data…

CVE-2026-126304: Symlink escape in NLTK YCOECorpusReader

NLTK versions 3.10.0–3.10.3 allow a directory symlink inside a YCOE corpus to point a nested reader outside the corpus root. When an application loads attacker-controlled YCOE corpus contents with pathsec.ENFORCE=True, the reader may return files from other locations within the allowed NLTK data sandbox. This is read-only cross-corpus-root disclosure, not arbitrary filesystem reading.

← Back to intelligence

CVE-2026-126304: Symlink escape in NLTK YCOECorpusReader

NLTK versions 3.10.0–3.10.3 allow a directory symlink inside a YCOE corpus to point a nested reader outside the corpus root. When an application loads attacker-controlled YCOE corpus contents with pathsec.ENFORCE=True, the reader may return files from other locations within the allowed NLTK data sandbox. This is read-only cross-corpus-root disclosure, not arbitrary filesystem reading.