CVE-2026-40491
HIGH 7.8CVSS 3.1gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall
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.
- Published
- 18 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-76hw-p97h-883fPYSEC-2026-2158
- Sources
- NVDJSONOSV GHSA-76hw-p97h-883fJSONOSV PYSEC-2026-2158JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | wkentaro | gdowncpe:2.3:a:wkentaro:gdown:*:*:*:*:*:*:*:* |
< 5.2.2 | 5.2.2 |
| OSV | PyPI | gdown | < 5.2.2 | 5.2.2 |
References
- https://github.com/wkentaro/gdown/commit/af569fc6ed300b7974dee66dc51e9f01b57b4dff · Patch, WEB, FIX
- https://github.com/wkentaro/gdown/releases/tag/v5.2.2 · Release Notes, WEB, ADVISORY
- https://github.com/wkentaro/gdown/security/advisories/GHSA-76hw-p97h-883f · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-40491 · ADVISORY
- https://github.com/wkentaro/gdown · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 18 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 Apr 2026)