RCE in Step-Security Harden-Runner

CVE-2024-52587

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.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.028 (85.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-52587?
CVE-2024-52587 is a high-severity vulnerability in Step-Security Harden-Runner, classified under OS Command Injection. CVSS score: 8.8/10. Published 2024-11-18.
How severe is CVE-2024-52587?
High severity. CVSS v3 base score is 8.8 out of 10.