CVE Explorer
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"gdown","vendor":"wkentaro","versions":[{"status":"affected","version":"< 5.2.2"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:997a76248eef981a346364f033fb20c8ff9d074cca23a8f1f6a7d6e394a0ab0c · sha256:5bf62ed23e113d71… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:997a76248eef981a346364f033fb20c8ff9d074cca23a8f1f6a7d6e394a0ab0c · sha256:5bf62ed23e113d71… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:997a76248eef981a346364f033fb20c8ff9d074cca23a8f1f6a7d6e394a0ab0c · sha256:5bf62ed23e113d71… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/wkentaro/gdown/commit/af569fc6ed300b7974dee66dc51e9f01b57b4dff","tags":["x_refsource_MISC"],"url":"https://github.com/wkentaro/gdown/commit/af569fc6ed300b7974dee66dc51e9f01b57b4dff"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:997a76248eef981a346364f033fb20c8ff9d074cca23a8f1f6a7d6e394a0ab0c · sha256:5bf62ed23e113d71… · /containers/cna/references/1
{"name":"https://github.com/wkentaro/gdown/releases/tag/v5.2.2","tags":["x_refsource_MISC"],"url":"https://github.com/wkentaro/gdown/releases/tag/v5.2.2"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:997a76248eef981a346364f033fb20c8ff9d074cca23a8f1f6a7d6e394a0ab0c · sha256:5bf62ed23e113d71… · /containers/cna/references/2
{"name":"https://github.com/wkentaro/gdown/security/advisories/GHSA-76hw-p97h-883f","tags":["x_refsource_CONFIRM"],"url":"https://github.com/wkentaro/gdown/security/advisories/GHSA-76hw-p97h-883f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:997a76248eef981a346364f033fb20c8ff9d074cca23a8f1f6a7d6e394a0ab0c · sha256:5bf62ed23e113d71… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.