<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T17:15:43.409705+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-65915</id>
    <title>CVE-2026-65915 — NLTK before 3.10.0 Arbitrary File Read via FileSystemPathPointer</title>
    <updated>2026-09-29T17:15:43.412212+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> nltk</p>
<p>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.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-65915"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-72r2-7mfr-5xr9</id>
    <title>GHSA-72r2-7mfr-5xr9 — NLTK: FileSystemPathPointer.open() sandbox check is dead code — arbitrary file read via file:// protocol</title>
    <updated>2026-09-29T17:15:43.412281+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: nltk</p>
<p>### Summary</p>
<p>There's a logic bug in `FileSystemPathPointer.open()` inside `nltk/data.py`
that makes the sandbox check permanently inert. The guard condition is always
`False` — meaning any file the process can read is accessible by passing a
`file://` URL to `nltk.data.load()`.</p>
<p>---</p>
<p>### Details</p>
<p>In `nltk/data.py`, `FileSystemPathPointer.open()` was patched at some point
with a comment saying "SECURITY PATCH ENFORCING SANDBOX", but the check
doesn't work:
```python
def open(self, encoding=None):
    path = os.path.normpath(self._path)</p>
<p># Block raw absolute reads such as "/" "C:\\Windows" etc.
    if os.path.isabs(path) and path != os.path.normpath(self._path):
        raise ValueError(f"Direct absolute file access blocked: {path}")</p>
<p>stream = open(self._path, "rb")
```</p>
<p>`path` is set to `os.path.normpath(self._path)` on line 1, then compared
against `os.path.normpath(self._path)` again in the condition. They are
always equal. The `ValueError` never fires.</p>
<p>On top of that, `__init__` already calls `os.path.abspath()` before storing
`self._path`, so it's normalized before `open()` is even called. Running
`normpath` on it again changes nothing.</p>
<p>The `stream = open(self._path, "rb")` line is always reached regardless of
what path was passed in.</p>
<p>---</p>
<p>### PoC</p>
<p>Tested on Python 3.11, NLTK 3.9.1, Ubuntu 22.04.
```python
import nltk
from nltk.data import FileSystemPathPointer</p>
<p># direct construction
ptr = FileSystemPathPointer("/etc/passwd")
with ptr.open() as f:
    print(f.r…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-72r2-7mfr-5xr9"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/pysec-2026-3731</id>
    <title>PYSEC-2026-3731</title>
    <updated>2026-09-29T17:15:43.412348+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: nltk</p>
<p>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.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/pysec-2026-3731"/>
  </entry>
</feed>
