Description
NLTK through 3.10.3 contains a path traversal vulnerability in model-artifact APIs that bypass pathsec enforcement by using raw file operations on caller-controlled paths. Attackers can read or write files outside allowed sandbox roots through TransitionParser, AveragedPerceptron, PerceptronTagger, and maxent parameter APIs when pathsec is enabled.
Published: 2026-08-27
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: Read/Write arbitrary files
Action: Update immediately
AI Analysis

Impact

NLTK up to 3.10.3 has a path traversal flaw in its model‑artifact APIs. The flaw lets an attacker supply a caller‑controlled path that bypasses the library’s pathsec mechanism by invoking raw file operations. The result is that files outside the intended sandbox can be read or modified, giving an attacker read/write access to critical configuration or data files. This is a classic CWE‑22 Path Traversal weakness that undermines confidentiality and integrity of the host system.

Affected Systems

The affected product is the NLTK library from the nltk organization, specifically all releases from the initial release through 3.10.3. Systems that import and use the TransitionParser, AveragedPerceptron, PerceptronTagger, or MaxEnt parameter APIs with pathsec enabled are impacted.

Risk and Exploitability

The CVSS score of 8.3 rates this as a high‑severity vulnerability. The EPSS score of <1% indicates a low exploitation probability, and the issue is not listed in the CISA KEV catalog. Attackers can exploit the flaw by invoking the vulnerable APIs over an exposed interface—such as a web service or a local script that imports NLTK—supply a crafted path, and then read or write files beyond the sandbox. Because the flaw operates through normal library functionality, no special conditions beyond using the affected APIs are required.

Generated by OpenCVE AI on September 1, 2026 at 18:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade NLTK to version 3.10.4 or later.
  • If an upgrade is not immediately possible, disable or restrict the use of the affected model‑artifact APIs, and remove any untrusted code that imports them.
  • Adjust the runtime environment to prevent untrusted callers from accessing NLTK’s file‑handling functions, for example by running the application in a sandbox or with restricted file‑system permissions.

Generated by OpenCVE AI on September 1, 2026 at 18:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-8mgp-746c-j5xp NLTK: Model-artifact APIs bypass pathsec and touch files outside allowed roots
History

Tue, 01 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22
References
Metrics threat_severity

None

threat_severity

Important


Thu, 27 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Description NLTK through 3.10.3 contains a path traversal vulnerability in model-artifact APIs that bypass pathsec enforcement by using raw file operations on caller-controlled paths. Attackers can read or write files outside allowed sandbox roots through TransitionParser, AveragedPerceptron, PerceptronTagger, and maxent parameter APIs when pathsec is enabled.
Title NLTK through 3.10.3 Path Traversal via Model-Artifact APIs
First Time appeared Nltk
Nltk nltk
Weaknesses CWE-73
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:H/I:L/A:L'}

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-27T19:29:23.489Z

Reserved: 2026-08-27T11:15:29.420Z

Link: CVE-2026-81726

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-08-27T17:21:03.387

Modified: 2026-08-31T19:06:49.993

Link: CVE-2026-81726

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-27T14:51:18Z

Links: CVE-2026-81726 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T18:15:04Z

Weaknesses
  • CWE-22

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

  • CWE-73

    External Control of File Name or Path