CVE-2026-40491

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

HIGH
7.8
CVSS Score
Published: April 18, 2026 at 01:36 AM UTC
Updated: October 26, 2026 at 09:10 PM UTC
1 product affected across 1 vendorGdown

Using gdown by wkentaro?

Get instant alerts when new vulnerabilities affect gdown - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.6%
SSVC
PoC

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.2.2
Affected range stops below 5.2.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_CONFIRMExploitVendor Advisory
Source: cverecord
https://github.com/wkentaro/gdown/security/advisories/GHSA-76hw-p97h-883f
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/wkentaro/gdown/releases/tag/v5.2.2

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card