gdown — security advisory
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.
- Products
- gdown
- Affected versions
- 5.2.0+dfsg-2, 5.2.1+dfsg-1
- Fixed versions
- 5.2.0+dfsg-2+deb13u1, 6.0.0+dfsg-1
- CVEs
- CVE-2026-40491
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 17:37 UTC · Revision 2
Source evidence
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.
osv:DEBIAN-CVE-2026-40491
gdown
Fixed versions: 5.2.0+dfsg-2+deb13u1
gdown
Fixed versions: 6.0.0+dfsg-1
Complete source record
{
"id": "6916dabfaf510ceb7e884fa150483c6462744a9fed133b060efe984254542bcc",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-40491",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-40491",
"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.",
"evidence": "osv:DEBIAN-CVE-2026-40491",
"products": [
{
"name": {
"value": "gdown",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.2.0+dfsg-2+deb13u1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "5.2.0+dfsg-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "gdown",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.0.0+dfsg-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "5.2.0+dfsg-2",
"evidence": "/affected/1/versions"
},
{
"value": "5.2.1+dfsg-1",
"evidence": "/affected/1/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2026-40491",
"aliases": [
"DEBIAN-CVE-2026-40491"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.2.0+dfsg-2+deb13u1"
}
]
}
],
"package": {
"name": "gdown",
"purl": "pkg:deb/debian/gdown?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"5.2.0+dfsg-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40491.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.0.0+dfsg-1"
}
]
}
],
"package": {
"name": "gdown",
"purl": "pkg:deb/debian/gdown?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"5.2.0+dfsg-2",
"5.2.1+dfsg-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40491.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-27T09:47:29.593427111Z",
"provider": "osv",
"upstream": [
"CVE-2026-40491"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-40491"
]
},
"related_cves": [
{
"value": "CVE-2026-40491",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 460884,
"published_at": "2026-04-18T03:16:13.157+00:00"
}