NetSight
high8.7

CVE-2026-126304

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 plant…

Impact

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.

An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: high risk of data being read.

Affected packages

EcosystemPackageAffectedFixed in
pipnltk< 3.10.4none recorded

Affected products · Nltk

ProductAffected versions
Nltk
from 3.10.0 before 3.10.4

Weakness classification

References