<?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://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-04T09:50:29.886813+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" 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://vulnerability.circl.lu/vuln/cve-2026-40491</id>
    <title>CVE-2026-40491 — gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall</title>
    <updated>2026-10-04T09:50:29.891856+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> wkentaro gdown</p>
<p>gdown is a Google Drive public file/folder downloader. Versions prior to 5.2.2 are vulnerable to a Path Traversal attack within the extractall functionality. When extracting a maliciously crafted ZIP or TAR archive, the library fails to sanitize or validate the filenames of the archive members. This allow files to be written outside the intended destination directory, potentially leading to arbitrary file overwrite and Remote Code Execution (RCE). Version 5.2.2 contains a fix.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-40491"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-76hw-p97h-883f</id>
    <title>GHSA-76hw-p97h-883f — gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall</title>
    <updated>2026-10-04T09:50:29.892337+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: gdown</p>
<p>### Summary
The gdown library (tested on v5.2.1) is vulnerable to a Path Traversal attack within its extractall functionality. When extracting a maliciously crafted ZIP or TAR archive, the library fails to sanitize or validate the filenames of the archive members. This allow files to be written outside the intended destination directory, potentially leading to arbitrary file overwrite and Remote Code Execution (RCE).</p>
<p>### Details
The vulnerability exists in `gdown/extractall.py` within the `extractall()` function. The function takes an archive path and a destination directory (`to`), then calls the underlying `extractall()` method of Python's `tarfile` or `zipfile` modules without validating whether the archive members stay within the `to` boundary.</p>
<p>Vulnerable Code:
```
# gdown/extractall.py
def extractall(path, to=None):
    # ... (omitted) ...
    with opener(path, mode) as f:
        f.extractall(path=to)  # Vulnerable: No path validation or filters`
```
Even on modern Python versions (3.12+), if the `filter` parameter is not explicitly set or if the library's wrapper logic bypasses modern protections, path traversal remains possible as demonstrated in the PoC.</p>
<p>### PoC
## Steps to Reproduce</p>
<p>1. Create the Malicious Archive (`poc.py`):
```
import tarfile
import io
import os</p>
<p># Create a target directory
os.makedirs("./safe_target/subfolder", exist_ok=True)</p>
<p># Generate a TAR file containing a member with path traversal
with tarfile.open("evil.tar", "w") as tar:
    # Targ…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-76hw-p97h-883f"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/pysec-2026-2158</id>
    <title>PYSEC-2026-2158</title>
    <updated>2026-10-04T09:50:29.892607+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: gdown</p>
<p>gdown is a Google Drive public file/folder downloader. Versions prior to 5.2.2 are vulnerable to a Path Traversal attack within the extractall functionality. When extracting a maliciously crafted ZIP or TAR archive, the library fails to sanitize or validate the filenames of the archive members. This allow files to be written outside the intended destination directory, potentially leading to arbitrary file overwrite and Remote Code Execution (RCE). Version 5.2.2 contains a fix.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/pysec-2026-2158"/>
  </entry>
</feed>
