CVE-2026-54293
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
nltkPyPI | < 3.10.0 | 3.10.0 |
Affected products
19- osv-coords17 versionspkg:apk/chainguard/apache-beam-python-3.11-sdkpkg:apk/chainguard/apache-beam-python-3.12-sdkpkg:apk/chainguard/apache-beam-python-3.13-sdkpkg:apk/chainguard/label-studiopkg:apk/chainguard/nemopkg:apk/chainguard/open-webuipkg:apk/chainguard/py3-nltkpkg:apk/chainguard/py3.11-nltkpkg:apk/chainguard/py3.12-nltkpkg:apk/chainguard/py3.13-nltkpkg:apk/wolfi/open-webuipkg:apk/wolfi/py3-nltkpkg:apk/wolfi/py3.11-nltkpkg:apk/wolfi/py3.12-nltkpkg:apk/wolfi/py3.13-nltkpkg:pypi/nltkpkg:rpm/opensuse/python-nltk&distro=openSUSE%20Tumbleweed
< 2.75.0-r0+ 16 more
- (no CPE)range: < 2.75.0-r0
- (no CPE)range: < 2.75.0-r0
- (no CPE)range: < 2.75.0-r0
- (no CPE)range: < 1.23.0-r11
- (no CPE)range: < 2.7.3-r15
- (no CPE)range: < 0.11.0-r7
- (no CPE)range: < 3.10.0-r0
- (no CPE)range: < 3.10.0-r0
- (no CPE)range: < 3.10.0-r0
- (no CPE)range: < 3.10.0-r0
- (no CPE)range: < 0.11.0-r7
- (no CPE)range: < 3.10.0-r0
- (no CPE)range: < 3.10.0-r0
- (no CPE)range: < 3.10.0-r0
- (no CPE)range: < 3.10.0-r0
- (no CPE)range: <= 3.9.4
- (no CPE)range: < 3.10.0rc1-1.1
Patches
Vulnerability mechanics
References
11- github.com/nltk/nltk/pull/3575nvdIssue TrackingPatchWEB
- github.com/nltk/nltk/security/advisories/GHSA-p4gq-832x-fm9vnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-p4gq-832x-fm9vghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-54293ghsaADVISORY
- access.redhat.com/errata/RHSA-2026:42644nvdWEB
- access.redhat.com/security/cve/CVE-2026-54293nvdWEB
- bugzilla.redhat.com/show_bug.cginvdWEB
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-2078.yamlghsaWEB
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54293.jsonnvdWEB
- access.redhat.com/errata/RHSA-2026:60520nvd
- access.redhat.com/errata/RHSA-2026:65126nvd
News mentions
0No linked articles in our index yet.