{"answers":{"affected":"6 open source packages ship an affected version, including github.com/cli/cli and github.com/cli/cli/v2.","exploited":"There is no known exploitation of CVE-2024-54132 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-54132 is a medium-severity path traversal vulnerability in cli, published on 4 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-54132 and fix it if it is affected.\n\nWhat it is: CVE-2024-54132 is a medium-severity path traversal vulnerability in cli, published on 4 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-54132 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cli/cli (Go): affected all versions; no fix listed\n- github.com/cli/cli (Go): affected all versions up to 1.14.0; no fix listed\n- github.com/cli/cli (Go): affected all versions up to 1.14.0; no fix listed\n- github.com/cli/cli/v2 (Go): affected all versions; fixed in 2.63.1\n- github.com/cli/cli/v2 (Go): affected all versions; fixed in 2.63.1\n- github.com/cli/cli/v2 (Go): affected all versions; fixed in 2.63.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-54132/ (Markdown: https://insights.sbomify.com/CVE-2024-54132/index.md)","id":"CVE-2024-54132","markdown":"https://insights.sbomify.com/CVE-2024-54132/index.md","name":"CVE-2024-54132","record":{"aliases":["AZL-53996","AZL-54009","DEBIAN-CVE-2024-54132","GHSA-2m9h-r57g-45pj","GO-2024-3310","UBUNTU-CVE-2024-54132"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub CLI","requires_auth":"none","summary":"Attackers can overwrite files outside the intended directory by tricking users into downloading malicious GitHub Actions artifacts with specific names.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"GitHub CLI allows downloading malicious GitHub Actions workflow artifact to result in path traversal vulnerability","id":"CVE-2024-54132","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":6,"n_references":2,"next":{"headline":"Possible Content Security Policy bypass in Action Dispatch","id":"CVE-2024-54133"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli","purl":"pkg:golang/github.com/cli/cli","source":"GO-2024-3310"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.14.0"],"package":"github.com/cli/cli","purl":null,"source":"GHSA-2m9h-r57g-45pj"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.14.0"],"package":"github.com/cli/cli","purl":"pkg:golang/github.com/cli/cli","source":"GHSA-2m9h-r57g-45pj"},{"ecosystem":"Go","fixed":["2.63.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli/v2","purl":null,"source":"GHSA-2m9h-r57g-45pj"},{"ecosystem":"Go","fixed":["2.63.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli/v2","purl":"pkg:golang/github.com/cli/cli/v2","source":"GHSA-2m9h-r57g-45pj"},{"ecosystem":"Go","fixed":["2.63.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli/v2","purl":"pkg:golang/github.com/cli/cli/v2","source":"GO-2024-3310"}],"prev":{"headline":"Kolide Agent Privilege Escalation (Windows, Versions \u003e= 1.5.3, \u003c 1.12.3)","id":"CVE-2024-54131"},"products":["cli"],"published":"2024-12-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-12-04","vendors":["cli"]},"summary":"Attackers can overwrite files outside the intended directory by tricking users into downloading malicious GitHub Actions artifacts with specific names.","url":"https://insights.sbomify.com/CVE-2024-54132/"}