CVE-2026-126304

NameCVE-2026-126304
DescriptionNLTK 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
nltk (PTS)bookworm3.8-1fixed
trixie3.9.1-2fixed
forky, sid3.10.3-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
nltksourcebookworm(not affected)
nltksourcetrixie(not affected)
nltksource(unstable)(unfixed)

Notes

[trixie] - nltk <not-affected> (Vulnerable code not present, introduced in 3.10)
[bookworm] - nltk <not-affected> (Vulnerable code not present, introduced in 3.10)
https://github.com/nltk/nltk/security/advisories/GHSA-qg35-44qx-7vrr

Search for package or bug name: Reporting problems