gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| wkentaro | gdown | before 5.2.2 | 5.2.2 | Patch available | CNA |
| — | gdown (PyPI) | before 5.2.2 | 5.2.2 | Patch available | GHSA-76hw-p97h-883f |
- gdown Vendorwkentaro Affected before 5.2.2 Fixed in 5.2.2 Patch available CNA
- gdown (PyPI) Vendor— Affected before 5.2.2 Fixed in 5.2.2 Patch available GHSA-76hw-p97h-883f
Remediation
- Fix · CNA gdown (wkentaro) Fixed in 5.2.2
- Fix · GHSA-76hw-p97h-883f gdown (PyPI) Fixed in 5.2.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40491
- 2026-10-03 Alias added: GHSA-76hw-p97h-883f
- 2026-10-25 EPSS moved to the below the 50th percentile
References
Sources
- CVE-2026-40491 · CVE Program
- CVE-2026-40491 · NVD
- FIRST EPSS
- GHSA-76hw-p97h-883f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences