CVE-2026-54293
nltk: NLTK: Information Disclosure via Path Traversal in `nltk.data.load()`
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-22
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | nltk | <3.10.0 | 3.10.0 |
Open a package to see all its vulnerabilities.
Operating systems · 14 fixes
chainguard 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r7 | |
| label-studio | 1.23.0-r11 | |
| nemo | 2.7.3-r15 | |
| apache-beam-python-3-11-sdk +2 | 2.75.0-r0 | |
| py3-nltk | 3.10.0-r0 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | nltk | affected |
| 12 | nltk | affected |
| 13 | nltk | affected |
| 14 | nltk | 3.10.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nltk | affected |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| label-studio | 1.23.1-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python311-nltk +2 | 3.10.0rc1-1.1 | openSUSE-SU-2026:11098-1 |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.11.0-r7 | |
| py3-nltk | 3.10.0-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:42644
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:60520
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:65126
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-54293
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2491486
- github.com https://github.com/nltk/nltk
- github.com https://github.com/nltk/nltk/pull/3575
- github.com https://github.com/nltk/nltk/security/advisories/GHSA-p4gq-832x-fm9v
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-2078.yaml
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-54293
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.