CVE-2026-40491

HIGH CVSS 3.1: 7.8 EPSS 0.58%
Updated Oct 27, 2026
Wkentaro
Parameter Value
CVSS 7.8 (HIGH)
Affected Versions before 5.2.2
Fixed In 5.2.2
Type CWE-22 (Path Traversal)
Vendor Wkentaro
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Wkentaro Gdown
cpe:2.3:a:wkentaro:gdown:*:*:*:*:*:*:*:*
— 5.2.2