NLTK versions before 3.9.4 contain a symlink escape vulnerability in CorpusReader.open() that allows local attackers to read arbitrary files outside the corpus

PYSEC-2026-3732
HIGH 8.6OSV

En bref

Source
OSV
Publiée
Mise à jour
CVE
CVE-2026-70626
Alias
GHSA-r6gq-whwq-mvg9
CVSS_V4
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Criticité de la CVE
HIGH 8.6 · CVE-2026-70626

Description

NLTK versions before 3.9.4 contain a symlink escape vulnerability in CorpusReader.open() that allows local attackers to read arbitrary files outside the corpus root. The vulnerability exists because path validation is lexical and does not account for symlink resolution, enabling attackers to place symlinks inside the corpus root to access files outside the intended boundary.

Références

Paquets affectés

PaquetVersions
PyPI · nltkintroduced 0, fixed 3.9.4

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database