{"id":"GHSA-2m9h-r57g-45pj","revision":"856622cd9b9745198c05a672f5b46c38","records":[{"revision":"856622cd9b9745198c05a672f5b46c38","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-2m9h-r57g-45pj","aliases":["CVE-2024-54132","GO-2024-3310"],"title":"Downloading malicious GitHub Actions workflow artifact results in path traversal vulnerability","description":"### 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.","state":0,"publishedAt":"2024-12-04T15:32:45+00:00","modifiedAt":"2026-09-10T03:50:56.0338736+00:00","affected":[{"ecosystem":"Go","name":"github.com/cli/cli/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.63.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/cli/cli","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"1.14.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/cli/cli/security/advisories/GHSA-2m9h-r57g-45pj","https://nvd.nist.gov/vuln/detail/CVE-2024-54132","https://github.com/cli/cli/commit/1136764c369aaf0cae4ec2ee09dc35d871076932","https://github.com/cli/cli"],"sourceUrl":"https://github.com/advisories/GHSA-2m9h-r57g-45pj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2m9h-r57g-45pj","identifiers":["GHSA-2m9h-r57g-45pj","CVE-2024-54132","GO-2024-3310"]},"retained":false,"historicalAffected":[]}],"coverage":[]}