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: < 1% Very Low
KEV: No
Impact: Confidentiality Breach via Path Traversal
Action: Patch
AI Analysis

Impact

NLTK versions older than 3.10.0 contain a path traversal flaw in FramenetCorpusReader and NKJPCorpusReader that lets attackers supply unsafe selectors or poisoned index state. By feeding crafted arguments to methods such as frame_by_name, doc, lu, and header, the library will parse XML files located outside the designated corpus directory, enabling reading of any XML file the process can access. The vulnerability directly exposes sensitive configuration or data files, resulting in confidentiality loss.

Affected Systems

The flaw affects any installation of the nltk library with a version below 3.10.0 when the FrameNetCorpusReader or NKJPCorpusReader is used. Python applications, frameworks, or services that import nltk and load corpora through these readers are potentially exposed, regardless of the host operating system.

Risk and Exploitability

With a CVSS score of 8.2 the vulnerability is classified as high severity. The EPSS score is less than 1%, indicating that attacks are unlikely but not impossible. It is not listed in the CISA KEV catalog and no public exploits have been reported. The most probable attack surface is local execution where an attacker can manipulate the corpus input or index data supplied to the reader; based on the description, it is inferred that a remote attack would require the application to accept user‑controlled input that triggers the vulnerable code.

Generated by OpenCVE AI on August 31, 2026 at 14:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the nltk package to version 3.10.0 or later
  • Sanitize all parameters passed to FramenetCorpusReader and NKJPCorpusReader to eliminate potential path traversal strings
  • Limit the application file system permissions so that the process cannot read directories outside the intended corpus folder

Generated by OpenCVE AI on August 31, 2026 at 14:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-568f-pv23-39p4 NLTK: Stable FrameNet and NKJP readers parse outside-root XML
History

Mon, 31 Aug 2026 12:15:00 +0000

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

None

threat_severity

Moderate


Mon, 24 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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-24T19:07:55.247Z

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

Link: CVE-2026-62385

cve-icon Vulnrichment

Updated: 2026-08-24T19:07:34.092Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-08-31T18:50:08.490

Link: CVE-2026-62385

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-22T14:12:37Z

Links: CVE-2026-62385 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T14:30:09Z

Weaknesses
  • CWE-22

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

  • CWE-73

    External Control of File Name or Path