Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft archive with traversal filenames
-
DeliveryDeliver via social engineering or malicious link
-
ExploitUser downloads with gdown
-
InstallUser or automation calls extractall
-
C2Path validation bypassed
-
ExecuteArbitrary file written
-
ImpactExecutable overwritten or runtime directory compromised
-
Step 8Code execution achieved
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | A user or application must actively call gdown's extractall method on a malicious ZIP or TAR archive. The archive must contain at least one filename with directory traversal sequences (e.g., ../, absolute paths starting with /) or similar path escape patterns. The vulnerability is NOT exploitable if: (1) archive extraction is disabled or bypassed; (2) the user/application runs with minimal filesystem permissions that prevent writing outside the intended directory; (3) the extraction output is validated or canonicalized before use by downstream code. Exploitation succeeds when the library is used in default mode without custom filename validation and writes to a user-writable location (common in download workflows). The user interaction requirement (UI:R from CVSS) means automated, unattended extraction of untrusted archives is a particular risk vector. |
| Impact | CVSS 6.5 (Medium) with network attack vector and no authentication requirement suggests moderate baseline risk, but real-world impact is elevated by several factors. The CVSS vector (AV:N/AC:L/PR:N/UI:R) correctly identifies that remote, unauthenticated attackers can trigger the flaw via a malicious archive, but the mandatory user interaction (UI:R) is the primary limiting factor-the user must actively extract the archive. However, the impact scope is significant: integrity impact is high (I:H), meaning arbitrary file overwrite is possible, and the description explicitly links this to RCE potential if an attacker overwrites executable or script files in the application's runtime environment or system paths. No KEV or EPSS data provided, but the GitHub security advisory and public patched version (5.2.2) indicate the vendor has formally acknowledged this as a legitimate security issue warranting a fix. The attack complexity is low (AC:L), meaning exploitation does not require special network conditions or race conditions. Real-world risk depends on deployment context: automated archive extraction workflows present higher risk than manual user-triggered extraction. The lack of active exploitation data (no KEV confirmation) suggests this is not yet widely weaponized, but the public patch and clear technical exploitability mean defensive action is justified. |
| Exploit ScenarioDerived | An attacker crafts a malicious ZIP archive with a file entry named '../../var/www/html/shell.php' or similar path traversal sequence. The attacker tricks or socially engineers a user into downloading this archive via gdown and extracting it using gdown's extractall functionality. The path traversal causes the shell.php file to be written to the web server directory, enabling remote code execution when the attacker accesses the URL. Alternatively, if gdown is used in an automated CI/CD pipeline, the attacker can inject a malicious archive as a downloadable artifact, triggering extraction without user interaction at that stage. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 18, 2026
gdown prior to version 5.2.2 allows remote attackers to write arbitrary files outside the intended extraction directory via maliciously crafted ZIP or TAR archives due to insufficient path traversal validation in the extractall functionality. An attacker can craft a malicious archive with path traversal sequences (e.g., ../ entries) in filenames, which when extracted by a user, permits file overwrite and potential remote code execution. The vulnerability requires user interaction (UI:R) to trigger extraction but affects all unauthenticated remote users downloading via the gdown library.
RemediationAI
Vendor-released patch: gdown version 5.2.2 or later. Users should upgrade immediately by running 'pip install --upgrade gdown>=5.2.2' or equivalent for their package manager. The upstream fix (commit af569fc6ed300b7974dee66dc51e9f01b57b4dff) implements path validation in the extractall method to reject archive entries containing directory traversal sequences (../, absolute paths, etc.). For organizations unable to upgrade immediately, compensating controls include: (1) Restrict gdown usage to sandboxed environments or isolated user accounts with minimal filesystem permissions, limiting the impact radius of arbitrary file writes; (2) Disable automatic archive extraction in downstream tools-require manual review and explicit extraction commands; (3) Validate extracted file paths programmatically before processing by implementing extraction wrapper functions that reject any archive member paths containing '..' or absolute path prefixes. Note that sandboxing introduces performance overhead and wrapper functions require code changes; the patch is the preferred remediation. See https://github.com/wkentaro/gdown/security/advisories/GHSA-76hw-p97h-883f for vendor details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
gdown is a Python library for downloading files from Google Drive without authentication. The vulnerability exists in the archive extraction logic (extractall method) used to handle ZIP and TAR file formats. The library fails to canonicalize or validate archive member filenames against directory traversal patterns before writing them to disk. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) is the root cause class - a classic path traversal flaw where user-controlled filename input is not validated. When an archive contains entries with relative paths (e.g., ../../sensitive_file or /etc/passwd), the extraction proceeds without sanitization, allowing writes to arbitrary filesystem locations. This is exacerbated when the library is used in automated workflows or by applications that automatically extract downloaded archives.
Know when Gdown gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-23642
GHSA-76hw-p97h-883f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB