CVE-2024-52587 Harden-Runner has command injection weaknesses in `setup.ts` and `arc-runner.ts`
Command injection in Harden-Runner allows code execution via environment variables, though exploitation is unlikely due to execution order.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-52587?
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.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2024-52587?
1 open source package ship an affected version, including step-security/harden-runner.
| Package | Affected | Fixed in |
|---|---|---|
step-security/harden-runner GitHub Actions | All versions | 2.10.2 |
How do I fix CVE-2024-52587?
Upgrade step-security/harden-runner to 2.10.2 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-52587 being exploited?
There is no known exploitation of CVE-2024-52587 in the wild and no public exploit code.
Sources
Also known as GHSA-g85v-wf27-67xc.