Skip to content
OpenAdvisories
Medium · 6.3 CVE-2024-54132 EUVD-2024-3409GHSA-2m9h-r57g-45pjGO-2024-3310

GitHub CLI allows downloading malicious GitHub Actions workflow artifact to result in path traversal vulnerability

Published Dec 4, 2024 · Updated Dec 4, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
cli cli < 2.63.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 gh 2.46.0-3 —
Debian 12 gh No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS gh 2.45.0-1ubuntu0.3+esm2 USN-8012-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20241209T183251-1.1 openSUSE-SU-2024:14567-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 gh 2.62.0-2 —
Azure Linux 2 (CBL-Mariner) gh 2.13.0-23 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gh 2.63.1-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/cli/cli <= 1.14.0 — GHSA-2m9h-r57g-45pj
Go github.com/cli/cli all versions — GO-2024-3310
Go github.com/cli/cli/v2 < 2.63.1 2.63.1 GHSA-2m9h-r57g-45pj

Advisories 2

References