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


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.32% (24th 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-WOLFILATEST-PY3NLTK-21430002
  • published22 Oct 2026
  • disclosed13 Oct 2026

Introduced: 13 Oct 2026

NewCVE-2026-109956  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Wolfi py3-nltk to version 3.10.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 Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

NLTK through 3.10.3 contains a path traversal vulnerability in WekaClassifier that allows attackers to bypass nltk.pathsec containment by supplying unvalidated model paths. Attackers controlling the model_filename or model argument can make the weka JVM write files via -d or probe files via -l outside allowed data roots.

CVSS Base Scores

version 3.1