CVE-2024-54132 GitHub CLI allows downloading malicious GitHub Actions workflow artifact to result in path traversal vulnerability
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 4 fixed, 1 partially fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/gh(Debian 12) | = 2.23.0+dfsg1-1; = 2.24.3+dfsg1-1; = 2.27.0+dfsg1-1; = 2.30.0-1 +13 more | No fix listed | No fix yet |
| cli github.com/cli/cli(Go) | < 2.63.1; <= 1.14.0; All versions | 2.63.1 | Partially fixed |
| azure linux gh(Azure Linux 3.0) | < 2.62.0-2 | 2.62.0-2 | Fixed |
| cbl-mariner gh(CBL-Mariner 2.0) | < 2.13.0-23 | 2.13.0-23 | Fixed |
| debian/gh(Debian 13) | < 2.46.0-3 | 2.46.0-3 | Fixed |
| ubuntu/gh(Ubuntu 24.04) | < 2.45.0-1ubuntu0.3+esm2 | 2.45.0-1ubuntu0.3+esm2 | Fixed |
| cli github.com/cli/cli | = < 2.63.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cli github.com/cli/cli(Go) | < 2.63.1 | 2.63.1 |
| cli github.com/cli/cli(Go) | <= 1.14.0 | No fix listed |
| cli github.com/cli/cli(Go) | All versions | No fix listed |
| cbl-mariner gh(CBL-Mariner:2.0) | < 2.13.0-23 | 2.13.0-23 |
| azure linux gh(Azure Linux:3.0) | < 2.62.0-2 | 2.62.0-2 |
| debian/gh(Debian:12) | All versions | No fix listed |
| debian/gh(Debian:12) | = 2.23.0+dfsg1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.24.3+dfsg1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.27.0+dfsg1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.30.0-1 | No fix listed |
| debian/gh(Debian:12) | = 2.30.0-2 | No fix listed |
| debian/gh(Debian:12) | = 2.35.0-1 | No fix listed |
| debian/gh(Debian:12) | = 2.40.1+dfsg1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.42.1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.43.1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.44.1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.44.1-2 | No fix listed |
| debian/gh(Debian:12) | = 2.45.0-1 | No fix listed |
| debian/gh(Debian:12) | = 2.46.0-1 | No fix listed |
| debian/gh(Debian:12) | = 2.46.0-2 | No fix listed |
| debian/gh(Debian:12) | = 2.46.0-3 | No fix listed |
| debian/gh(Debian:12) | = 2.46.0-4 | No fix listed |
| debian/gh(Debian:13) | < 2.46.0-3 | 2.46.0-3 |
| cli github.com/cli/cli | = < 2.63.1 | No fix listed |
| ubuntu/gh(Ubuntu:24.04) | < 2.45.0-1ubuntu0.3+esm2 | 2.45.0-1ubuntu0.3+esm2 |
References
- https://github.com/cli/cli/security/advisories/GHSA-2m9h-r57g-45pj vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/cli/cli/commit/1136764c369aaf0cae4ec2ee09dc35d871076932 patch
- github.com product
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- github.com
- Debian Security Tracker CVE-2024-54132 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8012-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking