ADVISORIES

Vulnerability

CVE-2026-40491

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.

5 advisories report this vulnerability, across 4 ecosystems.

Advisories

  • CGA-vrrm-6jmm-4258
    CVE-2026-40491 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-40491

    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…

    CVE-2026-40491 Debian Updated 27 October 2026
  • GHSA-76hw-p97h-883f

    gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall

    Moderate CVE-2026-40491 PyPI Updated 10 September 2026
  • PYSEC-2026-2158

    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…

    CVE-2026-40491 PyPI Updated 13 July 2026
  • UBUNTU-CVE-2026-40491

    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…

    CVE-2026-40491 Ubuntu Updated 17 October 2026

References