cve.bz

CVE-2024-54132 cli cli: Path traversal

6.3 mediumEPSS 0.6%Fix available

Medium (6.3) in cli cli. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/cli/cli/v2 2.63.1.

On this page
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.

Severity

CVSS 4.0

6.3 medium
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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-12-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-54132 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-54132?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-54132?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-54132 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
cli< 2.63.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2m9h-r57g-45pjGogithub.com/cli/cli/v2<2.63.12.63.1
GHSA-2m9h-r57g-45pjGogithub.com/cli/cli<=1.14.0no fix published
GO-2024-3310Gogithub.com/cli/cliall versionsno fix published
GO-2024-3310Gogithub.com/cli/cli/v2<2.63.12.63.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ghno fix listedDEBIAN-CVE-2024-54132
Debian13gh2.46.0-3DEBIAN-CVE-2024-54132
UbuntuPro:24.04:LTSgh2.45.0-1ubuntu0.3+esm2UBUNTU-CVE-2024-54132 USN-8012-1
openSUSETumbleweedgovulncheck-vulndb0.0.20241209T183251-1.1openSUSE-SU-2024:14567-1
Azure Linux2gh2.13.0-23AZL-54009
Azure Linux3gh2.62.0-2AZL-53996

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON