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.
Published: 2026-10-13
Score: 8.3 High
EPSS: n/a
KEV: No
Impact: Remote code execution
Action: Immediate Patch
AI Analysis

Impact

NLTK versions up to 3.10.3 contain a path traversal flaw in the WekaClassifier module that allows an attacker in control of the model filename or model argument to bypass the nltk.pathsec containment checks. By providing an unvalidated path, the caller 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. Although no EPSS score is available and the flaw is not listed in the CISA KEV catalog, the nature of 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.

Generated by OpenCVE AI on October 13, 2026 at 15:17 UTC.

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 October 13, 2026 at 15:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 13 Oct 2026 13:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-13T13:27:20.244Z

Reserved: 2026-10-13T11:25:25.214Z

Link: CVE-2026-109956

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-13T14:17:34.520

Modified: 2026-10-13T14:17:34.520

Link: CVE-2026-109956

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T15:30:08Z

Weaknesses
  • CWE-22

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