Vulnerability
CVE-2026-54293
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.
30 advisories report this vulnerability, across 6 ecosystems.
Advisories
- CGA-38h6-pvjm-h3p9
- CGA-4m76-rq9q-m2gc
- CGA-57v3-qcgw-wv99
- CGA-6c9v-pf5r-868c
- CGA-6jx3-49xg-67w6
- CGA-99mg-xfq4-gvh9
- CGA-9h89-gjp6-g4jp
- CGA-9v79-67gw-qq9g
- CGA-g386-qc28-hc9w
- CGA-g86f-wr58-7pxc
- CGA-gq9c-c545-3c7f
- CGA-j9pq-v9xj-rw2f
- CGA-jr5m-gw8x-4q6c
- CGA-jw3f-mmqg-q6gv
- CGA-mc7c-gm5h-67x7
- CGA-mvpm-7263-vr34
- CGA-p35v-m46j-2mpj
- CGA-pffq-9j7m-vh3x
- CGA-r98r-4vmh-226m
- CGA-rpp3-qmf9-p95g
- CGA-rwvm-m8hc-w7fx
- CGA-vh78-56cq-qp78
- CGA-vhwr-83cr-p9fx
- CGA-x32g-xvp4-8ffr
- CGA-x8h4-566x-h24g
-
DEBIAN-CVE-2026-54293
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…
-
GHSA-p4gq-832x-fm9v
Natural Language Toolkit (NLTK): URL-Encoded Path Traversal in nltk.data.load() Allows Arbitrary Local File Read
-
PYSEC-2026-2078
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…
-
UBUNTU-CVE-2026-54293
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…
-
openSUSE-SU-2026:11098-1
python311-nltk-3.10.0rc1-1.1 on GA media
References
- https://github.com/nltk/nltk/pull/3575
- https://github.com/nltk/nltk/security/advisories/GHSA-p4gq-832x-fm9v
- https://access.redhat.com/errata/RHSA-2026:42644
- https://access.redhat.com/errata/RHSA-2026:60520
- https://access.redhat.com/errata/RHSA-2026:65126
- https://access.redhat.com/security/cve/CVE-2026-54293
- https://bugzilla.redhat.com/show_bug.cgi?id=2491486
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54293.json