CVE-2026-40491

Source
https://cve.org/CVERecord?id=CVE-2026-40491
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40491.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40491
Aliases
Downstream
Related
Published
2026-04-18T01:36:47.659Z
Modified
2026-07-13T07:26:38.852305953Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N CVSS Calculator
Summary
gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40491.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/wkentaro/gdown

Affected ranges

Type
GIT
Repo
https://github.com/wkentaro/gdown
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:wkentaro:gdown:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "5.2.2"
        }
    ]
}

Affected versions

1.*
1.0.0
1.0.1
1.0.2
2.*
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.3.0
2.3.1
3.*
3.0.0
3.1.0
3.2.0
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.3.0
3.3.1
v3.*
v3.10.0
v3.10.1
v3.10.2
v3.10.3
v3.11.0
v3.11.0rc1
v3.11.1
v3.12.0
v3.12.1
v3.12.2
v3.13.0
v3.13.1
v3.14.0
v3.15.0
v3.3.2
v3.4.0
v3.4.1
v3.4.2
v3.4.3
v3.4.4
v3.4.5
v3.4.6
v3.5.0
v3.6.0
v3.6.1
v3.6.2
v3.6.3
v3.6.4
v3.7.0
v3.7.1
v3.7.2
v3.7.3
v3.7.4
v3.8.0
v3.8.1
v3.8.2
v3.8.3
v3.9.0
v3.9.1
v4.*
v4.0.0
v4.0.1
v4.0.2
v4.1.0
v4.1.1
v4.2.0
v4.2.1
v4.3.0
v4.3.1
v4.4.0
v4.5.0
v4.5.1
v4.5.2
v4.5.3
v4.5.4
v4.6.0
v4.6.1
v4.6.2
v4.6.3
v4.6.4
v4.6.5
v4.6.6
v4.7.0
v4.7.1
v4.7.2
v4.7.3
v5.*
v5.0.0
v5.0.1
v5.1.0
v5.2.0
v5.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40491.json"