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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.7
- **CVSS:** 2.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Unreported
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 4.31% (percentile 92, 2026-11-28)
- **CWE:** CWE-78
- **Published:** 2024-11-18T22:03:15.657Z
- **Modified:** 2026-06-17T08:07:30.040Z

## Who should check

- Anyone running step-security harden-runner \< 2.10.2

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

## Affected and fixed versions

- step-security harden-runner: \< 2.10.2 (cvelist)

## Mitigation

- Upgrade harden-runner to 2.10.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-52587. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-52587.md
Affected: step-security harden-runner < 2.10.2
Fixed in: step-security harden-runner 2.10.2

Steps:
1. Search this machine and project for step-security harden-runner: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-52587 being exploited?

There is no confirmed exploitation: CVE-2024-52587 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 4.31% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-52587?

Low: CVSS 2.7 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-52587?

step-security harden-runner \< 2.10.2.

### Is there a fix for CVE-2024-52587?

Yes. Fixed in step-security harden-runner 2.10.2. Upgrade harden-runner to 2.10.2 or later.

### How do I check if I'm affected by CVE-2024-52587?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/step-security/harden-runner/security/advisories/GHSA-g85v-wf27-67xc>
- patch: <https://github.com/step-security/harden-runner/commit/0080882f6c36860b6ba35c610c98ce87d4e2f26f>
- other: <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L40-L44>
- other: <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L53>
- other: <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L57>
- other: <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L61>
- other: <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/setup.ts#L169>
- other: <https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/setup.ts#L229>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-52587>

HTML: <https://flawdb.com/CVE-2024-52587> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-52587>
