7.5High

CVE-2026-126304NLTK 3.10.0 before 3.10.4 Symlink Escape in YCOECorpusReader

nltk nltk Published: (5 days ago)

Description

NLTK from 3.10.0 before 3.10.4 contains a symlink escape vulnerability in YCOECorpusReader that allows attackers to read files outside the corpus root by planting psd or pos directory symlinks. Attackers controlling a YCOE corpus can make parsed_sents() and tagged_words() return file content from other corpora or temporary files within the NLTK data sandbox.

Weakness (CWE): CWE-59

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
nltk nltk 3.10.0 – < 3.10.4, fixed 3.10.4

References and patches