CVE-2026-33236
nltk: NLTK: Arbitrary file overwrite and creation via path traversal in XML index files
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. In versions 3.9.3 and prior, the NLTK downloader does not validate the subdir and id attributes when processing remote XML index files. Attackers can control a remote XML index server to provide malicious values containing path traversal sequences (such as ../), which can lead to arbitrary directory creation, arbitrary file creation, and arbitrary file overwrite. Commit 89fe2ec2c6bae6e2e7a46dad65cc34231976ed8a patches the issue.
Source: OX vulnerability database
Severity
8.1 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Weakness: CWE-22
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | nltk | <3.9.4 | 3.9.4 |
Open a package to see all its vulnerabilities.
Operating systems · 12 fixes
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| py3-nltk | 3.9.4-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 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | nltk | 3.2.5-1ubuntu0.1+esm4 |
| 20.04-ESM | nltk | 3.4.5-2ubuntu0.1~esm4 |
| 22.04 | nltk | affected |
| 24.04 | nltk | affected |
| 26.04 | nltk | affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| py3-nltk | 3.9.4-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:10184
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:19712
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:37275
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:42644
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-33236
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2449824
- github.com https://github.com/nltk/nltk
- github.com https://github.com/nltk/nltk/commit/89fe2ec2c6bae6e2e7a46dad65cc34231976ed8a
- github.com https://github.com/nltk/nltk/security/advisories/GHSA-469j-vmhf-r6v7
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-2237.yaml
Show all 14 references
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.