Skip to content
OpenAdvisories
Medium · 6.2 CVE-2026-70626 EUVD-2026-64314GHSA-8h9m-22mv-qv5rGHSA-r6gq-whwq-mvg9PYSEC-2026-3732

NLTK before 3.9.4 Symlink Escape via CorpusReader

Published Aug 22, 2026 · Updated Aug 24, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
nltk nltk < 3.9.4 3.9.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nltk 3.10.0-1 —
Debian 13 nltk No fix yet —
Debian 12 nltk No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 nltk No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS nltk No fix yet —
Ubuntu Pro 24.04 LTS nltk No fix yet —
Ubuntu Pro 22.04 LTS nltk No fix yet —
Ubuntu Pro 20.04 LTS nltk No fix yet —
Ubuntu Pro 18.04 LTS nltk No fix yet —
Ubuntu Pro 16.04 LTS nltk No fix yet —
Ubuntu Pro 14.04 LTS nltk No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nltk < 3.9.4 3.9.4 GHSA-r6gq-whwq-mvg9

References