Description
NLTK versions before 3.10.0 contain a path traversal vulnerability in FramenetCorpusReader and NKJPCorpusReader that allows attackers to parse XML files outside the corpus root by supplying unsafe selectors or poisoned index state. Attackers can exploit frame_by_name, doc, lu, and header methods with crafted parameters to read arbitrary XML files accessible to the application.
Published: 2026-08-22
Score: 8.2 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

NLTK versions earlier than 3.10.0 are affected by a path traversal flaw in the FramenetCorpusReader and NKJPCorpusReader components. The flaw allows an attacker to craft selector inputs or poisoned index state that cause these readers to parse XML files located outside the intended corpus root. By exploiting methods such as frame_by_name, doc, lu, and header with crafted parameters, an attacker can read any XML file accessible to the application, exposing sensitive information and compromising confidentiality.

Affected Systems

The vulnerability impacts installations of NLTK that are below version 3.10.0, including the 3.9.x series. Any Python environment that imports NLTK and uses the FrameNetCorpusReader or NKJPCorpusReader to parse corpora is potentially exposed. Users of DSLs or applications that rely on NLTK for natural language processing should verify the library version and update accordingly.

Risk and Exploitability

The CVSS score of 8.2 indicates a high severity. The EPSS score is not available, so the exact likelihood of exploitation cannot be quantified from the data. The vulnerability is not listed in the CISA KEV catalog. Attackers would need to induce the application to use malicious selector values or manipulate the index state; the likely attack vector is local, via the application runtime or a remote exploitation path if the application accepts user supplied corpus inputs. The flaw provides an information‑disclosure risk by allowing arbitrary file reads within the application's accessible file system.

Generated by OpenCVE AI on August 22, 2026 at 15:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade NLTK to version 3.10.0 or later
  • Review and sanitize all inputs passed to FramenetCorpusReader and NKJPCorpusReader to remove potential path traversal strings
  • Configure application file system permissions so that the runtime cannot read sensitive directories beyond the intended corpus

Generated by OpenCVE AI on August 22, 2026 at 15:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Description NLTK versions before 3.10.0 contain a path traversal vulnerability in FramenetCorpusReader and NKJPCorpusReader that allows attackers to parse XML files outside the corpus root by supplying unsafe selectors or poisoned index state. Attackers can exploit frame_by_name, doc, lu, and header methods with crafted parameters to read arbitrary XML files accessible to the application.
Title NLTK 3.9.4 Path Traversal via FrameNet and NKJP Readers
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': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-22T14:12:37.962Z

Reserved: 2026-07-13T22:40:54.412Z

Link: CVE-2026-62385

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T15:16:18.833

Modified: 2026-08-22T15:16:18.833

Link: CVE-2026-62385

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T15:30:05Z

Weaknesses
  • CWE-73

    External Control of File Name or Path