<?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-10-01T10:02:04.176131+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/brew-acronym-cve-2026-63310</id>
    <title>BREW-acronym-CVE-2026-63310 — NLTK: Missing Post-Download Integrity Verification Allows Malicious Package Injection</title>
    <updated>2026-10-01T10:02:04.178241+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Homebrew: acronym</p>
<p>NLTK's package downloader in nltk/downloader.py does not verify file integrity after download and before extraction.</p>
<p>The download flow at lines 789-825:
1. File is downloaded to a temp path via HTTP
2. os.replace(tmp_filepath, filepath) moves it to the final location (line 799)
3. Extraction begins via _unzip_iter() (line 825)</p>
<p>Between steps 2 and 3, there is no SHA-256 verification. The checksum logic exists in _pkg_status() (lines 982-1015) but it is only used BEFORE download as a status check ("is this package already installed and up-to-date?"). It is never called after download to verify the file that was actually received.</p>
<p>Attack vectors:
1. MITM during HTTP download (NLTK downloads from http:// by default on some mirrors)
2. Race condition on shared filesystems (attacker replaces file between os.replace and _unzip_iter)
3. DNS poisoning redirecting to attacker-controlled server</p>
<p>PoC:
```python
import nltk
import unittest.mock
import zipfile
import io
import os</p>
<p># Create a malicious zip that will be "downloaded"
malicious_zip = io.BytesIO()
with zipfile.ZipFile(malicious_zip, 'w') as zf:
    zf.writestr('punkt_tab/tokenizers/punkt_tab/english.pickle', 
                b'MALICIOUS PAYLOAD - attacker controlled content')</p>
<p># Patch urllib to return our malicious zip
with unittest.mock.patch('urllib.request.urlopen') as mock_urlopen:
    mock_response = unittest.mock.MagicMock()
    mock_response.read.return_value = malicious_zip.getvalue()
    mock_response.headers = {'C…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/brew-acronym-cve-2026-63310"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-63310</id>
    <title>CVE-2026-63310</title>
    <updated>2026-10-01T10:02:04.178326+00:00</updated>
    <content>CVE-2026-63310</content>
    <link href="https://db.gcve.eu/vuln/cve-2026-63310"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/pysec-2026-3729</id>
    <title>PYSEC-2026-3729</title>
    <updated>2026-10-01T10:02:04.178349+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: nltk</p>
<p>NLTK before 3.9.3 fails to verify file integrity after downloading packages and before extraction in the downloader module. Attackers can perform man-in-the-middle attacks or DNS poisoning to inject malicious package contents that are extracted without validation.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/pysec-2026-3729"/>
  </entry>
</feed>
