# CVE-2024-52587: Harden-Runner has command injection weaknesses in `setup.ts` and `arc-runner.ts`

- Severity: Low 2.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.76%, higher than 86% of CVEs (2026-12-01)
- Published: 2024-11-18T22:03:15.657Z
- Modified: 2026-06-17T08:07:30.040Z
- Also known as: GHSA-g85v-wf27-67xc
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- step-security harden-runner: < 2.10.2
- step_security harden_runner: before 2.10.2
- step-security/harden-runner (GitHub Actions): before 2.10.2

## Every score

- GitHub_M: CVSS:4.0 2.7 Low `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`
- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Low `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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/step-security/harden-runner/security/advisories/GHSA-g85v-wf27-67xc> (web)
- <https://github.com/step-security/harden-runner/commit/0080882f6c36860b6ba35c610c98ce87d4e2f26f> (web)
- <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L40-L44> (web)
- <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L53> (web)
- <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L57> (web)
- <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L61> (web)
- <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/setup.ts#L169> (web)
- <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/setup.ts#L229> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52587> (advisory)
- <https://github.com/step-security/harden-runner> (package)

## Sources

- CVE List: [CVE-2024-52587](https://www.cve.org/CVERecord?id=CVE-2024-52587), CVE Terms of Use, modified 2024-11-19
- GitHub Advisory Database: [GHSA-g85v-wf27-67xc](https://github.com/advisories/GHSA-g85v-wf27-67xc), CC-BY-4.0, modified 2024-11-19
- NVD: [CVE-2024-52587](https://nvd.nist.gov/vuln/detail/CVE-2024-52587), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-52587 · Whole record: https://cve.day/CVE-2024-52587.json · Rebuilt by cve.day 2026-11-25T22:58:48.400Z
