Advisory record · GHSA-76hw-p97h-883f

gdown Affected by Arbitrary File Write via Path Traversal in gdown.extractall

CVSS 6.5 MediumEPSS 0.0059 · 48th percentile

Published by the GitHub Advisory Database at 14 Apr 2026, 01:11 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gdownPyPI<5.2.25.2.2
Identifiers
GHSA-76hw-p97h-883f · CVE-2026-40491 · PYSEC-2026-2158
Weakness (CWE)
CWE-22
Published
14 Apr 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The gdown Python package before 5.2.2 is vulnerable to path traversal in its extractall function: archive members with crafted filenames can be written outside the destination directory. An attacker who can supply a malicious ZIP or TAR archive for extraction could overwrite files such as shell or SSH configuration, potentially leading to code execution. Upgrade to gdown 5.2.2 or later. The source gives few details on whether the affected versions can be reached remotely.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.5 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0059, the 48th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:34 UTC First seen by agentprime
  2. 31 Oct 2026, 14:34 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.