---
id: CVE-2026-65915
title: >-
  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
summary: >-
  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…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-284
  - CWE-22
vendor: nltk
product: nltk
affected:
  - nltk < 3.10.0
patched:
  - nltk 3.10.0
published: '2026-08-22'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T13:10:00.187'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-65915'
references:
  - url: 'https://github.com/nltk/nltk/security/advisories/GHSA-72r2-7mfr-5xr9'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/nltk-before-arbitrary-file-read-via-filesystempathpointer
    label: disclosure@vulncheck.com
  - url: 'https://github.com/nltk/nltk/security/advisories/GHSA-72r2-7mfr-5xr9'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-65915'
  - url: 'https://github.com/nltk/nltk/pull/3522'
  - url: >-
      https://github.com/nltk/nltk/commit/69db9911fdba914ceeaca7aec6e892d1b14586a9
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3731.yaml
  - url: 'https://huntr.com/bounties/a510de7b-ffaf-4a83-9bf8-fa7e63f4bd2d'
  - url: 'https://github.com/advisories/GHSA-72r2-7mfr-5xr9'
  - url: 'https://github.com/nltk/nltk'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-65915.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-65915'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2521343'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-65915'
tags:
  - nvd
  - ghsa
  - pip
  - osv
  - csaf
  - vex
  - red-hat
epss: 0.0041
epssPercentile: 0.35088
aliases:
  - GHSA-72r2-7mfr-5xr9
  - PYSEC-2026-3731
ecosystem: pip
ingestedAt: '2026-08-23T04:42:15.391Z'
---

## Overview

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.

## Affected

- `nltk < 3.10.0`

## Remediation

Upgrade past the affected range:

- `nltk 3.10.0`

## Package advisory (CVE-2026-65915)

Affected packages:

- `nltk <= 3.9.3`

Patched in:

- `nltk 3.10.0`

Source: https://github.com/advisories/GHSA-72r2-7mfr-5xr9

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Exploit Intelligence, Lightspeed Core, OpenShift Lightspeed, Red Hat Ansible Automation Platform 2, Red Hat OpenShift AI (RHOAI) · no fix planned: Exploit Intelligence, Lightspeed Core, OpenShift Lightspeed, Red Hat Ansible Automation Platform 2, … · updated 2026-10-15 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-65915.json)
