Skip to content
7.5 High

CVE-2026-54293 NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research…

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 and versions

Product Affected versions Fixed in
nltk 3.10 earliest → < 3.10.0-rc1 3.10.0-rc1
Exploit Intelligence Versions not published
OpenShift Lightspeed Versions not published
Red Hat Ansible Automation Platform 2 Versions not published
Red Hat OpenShift AI (RHOAI) Versions not published
Red Hat OpenShift AI 2.25 1787330903 earliest → < 1787330903 1787330903
Red Hat OpenShift AI 3.4 1787330585 earliest → < 1787330585 1787330585

References

Timeline

  1. Published
  2. Last modified
The 36 CVEs of nltk →
Track this CVE