CVE-2026-40491
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | forky | fixed | 6.0.0+dfsg-1 |
| debian | sid | fixed | 6.0.0+dfsg-1 |
| debian | trixie | affected | |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | gdown | <5.2.2 | 5.2.2 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| wkentaro | gdown | {"endExcluding":"5.2.2"} | 5.2.2 |
References
- https://github.com/wkentaro/gdown/security/advisories/GHSA-76hw-p97h-883f
- https://nvd.nist.gov/vuln/detail/CVE-2026-40491
- https://github.com/wkentaro/gdown/commit/af569fc6ed300b7974dee66dc51e9f01b57b4dff
- https://github.com/wkentaro/gdown
- https://github.com/wkentaro/gdown/releases/tag/v5.2.2
- https://security-tracker.debian.org/tracker/CVE-2026-40491
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.