{"id":"CVE-2024-54132","aliases":["GHSA-2m9h-r57g-45pj","GO-2024-3310"],"url":"https://o3.security/vulnerability/CVE-2024-54132","summary":"GitHub CLI allows downloading malicious GitHub Actions workflow artifact to result in path traversal vulnerability","details":"### Summary\n\nA 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`. \n\n### Details\n\nThis 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.\n\nIn `2.63.1`, `gh run download` will not download artifacts named `..` and `.` and instead exit with the following error message:\n\n```\nerror downloading ..: would result in path traversal\n```\n\n### Impact\n\nSuccessful exploitation heightens the risk of local path traversal attack vectors exactly 1 directory higher than intended.\n\n### Remediation and Mitigation\n\n1. Upgrade `gh` to `2.63.1`\n2. Implement additional validation to ensure artifact filenames do not contain potentially dangerous patterns, such as `..`, to prevent path traversal risks.","published":"2024-12-04T15:29:07.426Z","modified":"2026-08-12T03:51:30.612406467Z","cvss":null,"epss":{"score":0.00629,"percentile":0.48546,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/cli/cli/v2","fixedVersion":"2.63.1"},{"ecosystem":"Go","name":"github.com/cli/cli","fixedVersion":null}],"fix":{"url":"https://github.com/cli/cli/commit/1136764c369aaf0cae4ec2ee09dc35d871076932","label":"cli/cli@1136764"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/54xxx/CVE-2024-54132.json"},{"type":"ADVISORY","url":"https://github.com/cli/cli/security/advisories/GHSA-2m9h-r57g-45pj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-54132"},{"type":"FIX","url":"https://github.com/cli/cli/commit/1136764c369aaf0cae4ec2ee09dc35d871076932"},{"type":"PACKAGE","url":"https://github.com/cli/cli"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:30.612406467Z"}}