Directory Traversal Affecting py3-nltk package, versions <3.9.4-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

Social Trends
EPSS
0.58% (44th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-PY3NLTK-15812775
  • published30 Mar 2026
  • disclosed20 Mar 2026

Introduced: 20 Mar 2026

CVE-2026-33236  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Chainguard py3-nltk to version 3.9.4-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-nltk package and not the py3-nltk package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.