Vulnerability · Published Dec 4, 2024 · Assigned by GitHub_M

CVE-2024-54132GitHub CLI allows downloading malicious GitHub Actions workflow artifact to result in path traversal vulnerability

Medium 6.3

In plain English

A medium-severity path traversal in cli from cli. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.3Medium
Exploit odds (30 days)0.6%top 49.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

The GitHub CLI is GitHub’s official command line tool. A security vulnerability has been identified in GitHub CLI that could create or overwrite files in unintended directories when users download a malicious GitHub Actions workflow artifact through gh run download. This vulnerability stems from a GitHub Actions workflow artifact named .. when downloaded using gh run download. The artifact name and --dir flag are used to determine the artifact’s download path. When the artifact is named .., the resulting files within the artifact are extracted exactly 1 directory higher than the specified --dir flag value. This vulnerability is fixed in 2.63.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ghno fix listedDEBIAN-CVE-2024-54132
Debian:13gh2.46.0-3DEBIAN-CVE-2024-54132
Gogithub.com/cli/clino fix listedGHSA-2m9h-r57g-45pj
Gogithub.com/cli/clino fix listedGO-2024-3310
Gogithub.com/cli/cli/v22.63.1GHSA-2m9h-r57g-45pj
Gogithub.com/cli/cli/v22.63.1GO-2024-3310

Affected products (as reported)

VendorProductVersions
cli cli < 2.63.1

Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:Green

References