Vulnerability · Published Apr 18, 2026 · Assigned by GitHub_M

CVE-2026-40491gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall

Medium 6.5

In plain English

A medium-severity path traversal in gdown from wkentaro. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.6%top 52.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13gdown5.2.0+dfsg-2+deb13u1DEBIAN-CVE-2026-40491
Debian:14gdown6.0.0+dfsg-1DEBIAN-CVE-2026-40491
PyPIgdown5.2.2PYSEC-2026-2158
PyPIgdown5.2.2GHSA-76hw-p97h-883f
Ubuntu:25.10gdownno fix listedUBUNTU-CVE-2026-40491
Ubuntu:26.04:LTSgdownno fix listedUBUNTU-CVE-2026-40491
Ubuntu:26.10gdownno fix listedUBUNTU-CVE-2026-40491

Affected products (as reported)

VendorProductVersions
wkentaro gdown < 5.2.2

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

References