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, 6.0.0+dfsg-1, 6.1.0+dfsg-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-40491
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:43 UTC · Revision 1
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:UBUNTU-CVE-2026-40491
gdown
Fixed versions: Not specified
gdown
Fixed versions: Not specified
gdown
Fixed versions: Not specified
Complete source record
{
"id": "150b0ce33513ae4c00502ac808a083c9ac7bfd484e77a5af1af6f8812d4f386d",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-40491",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-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:UBUNTU-CVE-2026-40491",
"products": [
{
"name": {
"value": "gdown",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.2.0+dfsg-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "gdown",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.2.1+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "6.0.0+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "6.1.0+dfsg-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "gdown",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.2.0+dfsg-2",
"evidence": "/affected/2/versions"
},
{
"value": "5.2.1+dfsg-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-40491",
"aliases": [
"UBUNTU-CVE-2026-40491"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gdown",
"purl": "pkg:deb/ubuntu/gdown?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"5.2.0+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40491.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gdown",
"binary_version": "5.2.0+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gdown",
"purl": "pkg:deb/ubuntu/gdown?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"5.2.1+dfsg-1",
"6.0.0+dfsg-1",
"6.1.0+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40491.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gdown",
"binary_version": "6.1.0+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gdown",
"purl": "pkg:deb/ubuntu/gdown?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"5.2.0+dfsg-2",
"5.2.1+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40491.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gdown",
"binary_version": "5.2.1+dfsg-1"
}
]
}
}
],
"modified": "2026-10-17T12:58:53.967832875Z",
"provider": "osv",
"upstream": [
"CVE-2026-40491"
],
"references": [
"https://ubuntu.com/security/CVE-2026-40491",
"https://www.cve.org/CVERecord?id=CVE-2026-40491",
"https://github.com/wkentaro/gdown/security/advisories/GHSA-76hw-p97h-883f"
]
},
"related_cves": [
{
"value": "CVE-2026-40491",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 359149,
"published_at": "2026-04-18T03:16:00+00:00"
}