{"id":"CVE-2026-40491","published":"2026-04-18T01:36:47Z","modified":"2026-04-20T15:50:02Z","title":"gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall","vendor":"wkentaro","product":"gdown","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00585,"percentile":0.48886,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/wkentaro/gdown/security/advisories/GHSA-76hw-p97h-883f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/wkentaro/gdown/commit/af569fc6ed300b7974dee66dc51e9f01b57b4dff","tags":["x_refsource_MISC"]},{"url":"https://github.com/wkentaro/gdown/releases/tag/v5.2.2","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":9.78},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"wkentaro","affectedVersions":[{"vendor":"wkentaro","product":"gdown","versions":["< 5.2.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-20T15:49:26.274715Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gdown","vulnerableRanges":["<5.2.2"],"patched":["5.2.2"],"from":["GHSA-76hw-p97h-883f","PYSEC-2026-2158"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal weakness in the extractall functionality of gdown, a Google Drive public file and folder downloader, where filenames of ZIP or TAR archive members are not sanitised or validated. An attacker who can supply a maliciously crafted archive for extraction can write files outside the intended destination directory, with user interaction required (the victim must perform the extraction) and no authentication or network access specified beyond delivering the archive.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:27Z"},"euvd":{"id":"EUVD-2026-23642","exploited":false,"provenance":"source"}}