Skip to content
OpenAdvisories
High · 7.5 CVE-2026-54293 EUVD-2026-38333GHSA-p4gq-832x-fm9vPYSEC-2026-2078

NLTK: URL-Encoded Path Traversal in nltk.data.load() Allows Arbitrary Local File Read

Published Jun 22, 2026 · Updated Sep 9, 2026 · Assigned by GitHub_M

Description

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.0-rc1, nltk.data.load() in NLTK is vulnerable to path traversal via URL-encoded path separators and traversal segments when using the nltk: URL scheme. The unsafe-path regex check is performed before url2pathname() decodes the %xx sequences (a classic decode-after-check / TOCTOU-style flaw), allowing an attacker to bypass the protection documented in NLTK's SECURITY.md and read arbitrary files from the filesystem. While literal traversal strings such as ../../../etc/passwd are correctly blocked, encoded variants such as %2fetc%2fpasswd, %2e%2e%2f..., and ..%2f..%2f slip past the regex and are subsequently decoded into a real filesystem path. This vulnerability is fixed in 3.10.0-rc1.

Affected products

VendorProductAffectedFixed
nltk nltk < 3.10.0-rc1 —

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 —
Ubuntu 25.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 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-nltk 3.10.0rc1-1.1 openSUSE-SU-2026:11098-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui 0.11.0-r7 —
Wolfi rolling py3-nltk +3 3.10.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nltk < 3.10.0 3.10.0 GHSA-p4gq-832x-fm9v

Advisories 1

References