CVE-2026-109956

NLTK before 3.10.4 Path Traversal via WekaClassifier Model Path

Published Oct 13, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
Description
NLTK before 3.10.4 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.

Analysis

AI-generated

Technical impact

NLTK versions up to 3.10.3 contain a path traversal flaw in the WekaClassifier module that allows an attacker controlling the model_filename or model argument to bypass the nltk.pathsec containment checks. By supplying an unvalidated model path, the attacker can cause the underlying Weka JVM to write arbitrary files via the –d option or probe files via –l outside the permitted data roots, potentially leading to unauthorized file creation, modification, or read access and ultimately enabling code execution.

Affected Systems

All installations of NLTK using versions 3.10.3 or earlier are potentially vulnerable. The flaw exists in the default distribution of NLTK and affects any environment that imports or utilizes the WekaClassifier class without additional path validation.

Risk and Exploitability

With a CVSS score of 8.3, the vulnerability represents a high severity risk. The EPSS score of <1% indicates a very low but nonzero exploitation probability, and the flaw is not listed in the CISA KEV catalog. The path traversal allows local or remote attackers who can influence the model path to write or read files on the host system. This capability can lead to remote code execution or data exfiltration if the attacker targets executable or sensitive locations. The attack vector requires code execution within the NLTK runtime or the ability to control the model filename, which is typically feasible through scripts or applications that load models dynamically.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade NLTK to the latest released version that includes the path traversal fix (e.g., 3.10.4 or later).
  • Until a patch is applied, avoid using WekaClassifier in production or security‑critical code paths, or isolate the environment to limit the impact of a potential exploit.
  • Configure file system permissions to restrict write access to directories that WekaClassifier may target, ensuring that only authorized processes can modify those locations.

Generated by OpenCVE AI on November 22, 2026 at 21:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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. NLTK before 3.10.4 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.
Title NLTK through 3.10.3 Path Traversal via WekaClassifier Model Path NLTK before 3.10.4 Path Traversal via WekaClassifier Model Path
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title NLTK through 3.10.3 Path Traversal via WekaClassifier Model Path
First Time appeared Nltk
Nltk nltk
Weaknesses CWE-22
CPEs cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*
Vendors & Products Nltk
Nltk nltk
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L'}

cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 20, 2026, 12:29 PM
Reserved
Oct 13, 2026, 11:25 AM
Status
Awaiting Analysis
Published
Oct 13, 2026, 2:17 PM
Modified
Nov 20, 2026, 1:18 PM
Severity
Moderate
Public date
Oct 13, 2026, 1:27 PM