Description
NLTK versions before 3.10.0 contain a logic bug in FileSystemPathPointer.open() where the sandbox validation check compares a normalized path against itself, making the security check permanently inert. Attackers can pass file:// URLs to nltk.data.load() to read arbitrary files accessible to the process user, including credentials and configuration files.
Published: 2026-08-22
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Read
Action: Immediate Patch
AI Analysis

Impact

NLTK versions prior to 3.10.0 contain a logic defect in the FileSystemPathPointer.open() method, where the sandbox validation erroneously compares a normalized path to itself, effectively disabling the security check. This flaw allows callers to supply file:// URLs to nltk.data.load(), causing the library to open any local file that the executing process can read, including credentials or other configuration files. The primary consequence is the confidentiality compromise of arbitrary files accessible to the process user.

Affected Systems

The vulnerable product is the Python Natural Language Toolkit (NLTK) for all releases before 3.10.0. Any installation of NLTK earlier than that release is susceptible to the flaw.

Risk and Exploitability

The CVSS score of 7.1 classifies this as high impact to confidentiality. The EPSS score is < 1% and the vulnerability is not listed in CISA's KEV catalog. Attackers can exploit the weakness in contexts where they control the input to nltk.data.load(), such as web or server applications that parse user-supplied data, or a local attacker possessing execution rights in the same process. Successful exploitation grants the attacker read access to any file the process user can access, potentially exposing sensitive information.

Generated by OpenCVE AI on August 28, 2026 at 19:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest NLTK release 3.10.0 or newer to eliminate the vulnerable logic.
  • If an upgrade cannot be performed immediately, sanitize all file:// URLs before handing them to nltk.data.load() or restrict the function to a whitelist of trusted directories—addressing the CWE‑22 path traversal weakness.
  • Enforce strict file-system permissions on the process user so that it can read only the directories required for normal operation; limiting file readability reduces the damage if an arbitrary read is attempted.

Generated by OpenCVE AI on August 28, 2026 at 19:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-72r2-7mfr-5xr9 NLTK: FileSystemPathPointer.open() sandbox check is dead code — arbitrary file read via file:// protocol
History

Thu, 27 Aug 2026 18:00:00 +0000

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

None

threat_severity

Moderate


Mon, 24 Aug 2026 20: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 logic bug in FileSystemPathPointer.open() where the sandbox validation check compares a normalized path against itself, making the security check permanently inert. Attackers can pass file:// URLs to nltk.data.load() to read arbitrary files accessible to the process user, including credentials and configuration files.
Title NLTK before 3.10.0 Arbitrary File Read via FileSystemPathPointer
First Time appeared Nltk
Nltk nltk
Weaknesses CWE-284
CPEs cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*
Vendors & Products Nltk
Nltk nltk
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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:20:52.747Z

Reserved: 2026-07-23T12:51:09.595Z

Link: CVE-2026-65915

cve-icon Vulnrichment

Updated: 2026-08-24T19:20:17.371Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-08-31T18:39:00.647

Link: CVE-2026-65915

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-65915 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T19:15:05Z

Weaknesses
  • CWE-22

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

  • CWE-284

    Improper Access Control