Advisory

PYSEC-2026-2158

Also known as: CVE-2026-40491, GHSA-76hw-p97h-883f

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-04-18 03:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

gdown

PyPI · All systems

Affected

  • introduced 0, fixed 5.2.2 (ecosystem)

Fixed versions

5.2.2

Fix

  • Fixed version 5.2.2
    pip install --upgrade gdown==5.2.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences