CVE-2026-70626 PUBLISHED

NLTK before 3.9.4 Symlink Escape via CorpusReader

Assigner: VulnCheck
Reserved: 04.08.2026 Published: 22.08.2026 Updated: 22.08.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 8.6

Product Status

Vendor nltk
Product nltk
Versions Default: unaffected
  • affected from 0 to 3.9.4 (excl.)
  • Version 3.9.4 is unaffected

Credits

  • leduckhuong reporter

References

Problem Types

  • Improper Link Resolution Before File Access ('Link Following') CWE