Medium severity6.5NVD Advisory· Published Apr 18, 2026· Updated May 1, 2026
CVE-2026-40491
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
gdownPyPI | < 5.2.2 | 5.2.2 |
Affected products
3- osv-coords2 versions
< 2.7.2-r2+ 1 more
- (no CPE)range: < 2.7.2-r2
- (no CPE)range: < 5.2.2
Patches
Vulnerability mechanics
References
5- github.com/wkentaro/gdown/commit/af569fc6ed300b7974dee66dc51e9f01b57b4dffnvdPatchWEB
- github.com/wkentaro/gdown/security/advisories/GHSA-76hw-p97h-883fnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-76hw-p97h-883fghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-40491ghsaADVISORY
- github.com/wkentaro/gdown/releases/tag/v5.2.2nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.