{"id":"CVE-2024-52587","published":"2024-11-18T22:03:15Z","modified":"2024-11-19T14:38:08Z","title":"Harden-Runner has command injection weaknesses in `setup.ts` and `arc-runner.ts`","vendor":"step-security","product":"harden-runner","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.7,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04311,"percentile":0.91932,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/step-security/harden-runner/security/advisories/GHSA-g85v-wf27-67xc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/step-security/harden-runner/commit/0080882f6c36860b6ba35c610c98ce87d4e2f26f","tags":["x_refsource_MISC"]},{"url":"https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L40-L44","tags":["x_refsource_MISC"]},{"url":"https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L53","tags":["x_refsource_MISC"]},{"url":"https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L57","tags":["x_refsource_MISC"]},{"url":"https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L61","tags":["x_refsource_MISC"]},{"url":"https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/setup.ts#L169","tags":["x_refsource_MISC"]},{"url":"https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/setup.ts#L229","tags":["x_refsource_MISC"]}],"priority":{"score":20.3,"factors":[{"name":"EPSS percentile","points":18.39},{"name":"CVSS severity","points":1.89}]},"vendorSlug":"step-security","affectedVersions":[{"vendor":"step-security","product":"harden-runner","versions":["< 2.10.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-11-19T14:33:51.375271Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"GitHub Actions","package":"step-security/harden-runner","vulnerableRanges":["<2.10.2"],"patched":["2.10.2"],"from":["GHSA-g85v-wf27-67xc"],"provenance":"source"}],"summary":{"text":"Harden-Runner, StepSecurity's GitHub Actions runner security action, contains multiple command injection weaknesses in its setup.ts and arc-runner.ts components, arising from how it handles environment variables. An attacker with network access and no authentication or user interaction could exploit these flaws, though the conditions are constrained because Harden-Runner reads the affected variables during the pre-step stage, which is the first step in a job.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:07Z"},"euvd":{"id":"EUVD-2024-3251","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-step-security-harden-runner-cve-2024-52587","children":[{"from":"CVE-2024-52587","to":"CVE-2025-32955","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"GitHub Actions:step-security/harden-runner","fromFixed":"2.10.2","toFixed":"2.12.0","daysApart":154},{"kind":"same-code","provenance":"machine","files":["dist/post/index.js","dist/post/index.js.map","dist/pre/index.js","dist/pre/index.js.map","src/cleanup.ts"],"commits":["https://github.com/step-security/harden-runner/commit/0080882f6c36860b6ba35c610c98ce87d4e2f26f","https://github.com/step-security/harden-runner/commit/0634a2670c59f64b4a01f0f96f84700a4088b9f0"],"basis":"shared function","functions":["MonitorResponse"]}]},{"from":"CVE-2024-52587","to":"CVE-2026-25598","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["dist/pre/index.js","dist/pre/index.js.map"],"commits":["https://github.com/step-security/harden-runner/commit/0080882f6c36860b6ba35c610c98ce87d4e2f26f","https://github.com/step-security/harden-runner/commit/5ef0c079ce82195b2a36a210272d6b661572d83e"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-52587","published":"2024-11-18","fixed":"2.10.2","kev":false},{"cve":"CVE-2025-32955","published":"2025-04-21","fixed":"2.12.0","kev":false},{"cve":"CVE-2026-25598","published":"2026-02-09","fixed":"2.14.2","kev":false},{"cve":"CVE-2026-32946","published":"2026-03-20","fixed":"2.16.0","kev":false}],"package":"GitHub Actions:step-security/harden-runner"}}