{"answers":{"affected":"1 open source package ship an affected version, including step-security/harden-runner.","exploited":"There is no known exploitation of CVE-2024-52587 in the wild and no public exploit code.","fix":"Upgrade step-security/harden-runner to 2.10.2 or later.","what":"CVE-2024-52587 is a low-severity command injection vulnerability in step-security harden-runner, published on 18 Nov 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-52587 and fix it if it is affected.\n\nWhat it is: CVE-2024-52587 is a low-severity command injection vulnerability in step-security harden-runner, published on 18 Nov 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-52587 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- step-security/harden-runner (GitHub Actions): affected all versions; fixed in 2.10.2\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-52587/ (Markdown: https://insights.sbomify.com/CVE-2024-52587/index.md)","id":"CVE-2024-52587","markdown":"https://insights.sbomify.com/CVE-2024-52587/index.md","name":"CVE-2024-52587","record":{"aliases":["GHSA-g85v-wf27-67xc"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub Actions security tool","requires_auth":"none","summary":"Command injection in Harden-Runner allows code execution via environment variables, though exploitation is unlikely due to execution order.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":2.7,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"StepSecurity's Harden-Runner provides network egress filtering and runtime security for GitHub-hosted and self-hosted runners. Versions of step-security/harden-runner prior to v2.10.2 contain multiple command injection weaknesses via environment variables that could potentially be exploited under specific conditions. However, due to the current execution order of pre-steps in GitHub Actions and the placement of harden-runner as the first step in a job, the likelihood of exploitation is low as the Harden-Runner action reads the environment variable during the pre-step stage. There are no known exploits at this time. Version 2.10.2 contains a patch.","ecosystems":["GitHub Actions"],"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":"Harden-Runner has command injection weaknesses in `setup.ts` and `arc-runner.ts`","id":"CVE-2024-52587","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":1,"n_references":8,"next":{"headline":"Strapi allows Server-Side Request Forgery in Webhook function","id":"CVE-2024-52588"},"packages":[{"ecosystem":"GitHub Actions","fixed":["2.10.2"],"introduced":["0"],"last_affected":[],"package":"step-security/harden-runner","purl":null,"source":"GHSA-g85v-wf27-67xc"}],"prev":{"headline":"eLabFTW MFA bypass","id":"CVE-2024-52586"},"products":["harden-runner"],"published":"2024-11-18","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-19","vendors":["step-security"]},"summary":"Command injection in Harden-Runner allows code execution via environment variables, though exploitation is unlikely due to execution order.","url":"https://insights.sbomify.com/CVE-2024-52587/"}