CVE-2026-81726

NLTK through 3.10.3 Path Traversal via Model-Artifact APIs

Published Aug 27, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Weaknesses
  • CWE-22

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

  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 30, 2026, 10:43 AM
Reserved
Aug 27, 2026, 11:15 AM
Status
Analyzed
Published
Aug 27, 2026, 5:21 PM
Modified
Oct 30, 2026, 11:17 AM
Severity
Important
Public date
Aug 27, 2026, 2:51 PM