CVE-2024-52587
HIGHGithub Actions Step-security/harden-runner - OS Command Injection
Title source: ruleDescription
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.
References (8)
Core 8
Core References
Vendor Advisory x_refsource_confirm
https://github.com/step-security/harden-runner/security/advisories/GHSA-g85v-wf27-67xc
Patch x_refsource_misc
https://github.com/step-security/harden-runner/commit/0080882f6c36860b6ba35c610c98ce87d4e2f26f
Various Sources x_refsource_misc
https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L40-L44
Various Sources x_refsource_misc
https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L53
Various Sources x_refsource_misc
https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L57
Various Sources x_refsource_misc
https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/arc-runner.ts#L61
Various Sources x_refsource_misc
https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/setup.ts#L169
Various Sources x_refsource_misc
https://github.com/step-security/harden-runner/blob/951b48540b429070694bc8abd82fd6901eb123ca/src/setup.ts#L229
Scores
CVSS v3
8.8
EPSS
0.0200
EPSS Percentile
83.8%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Details
CWE
CWE-78
Status
published
Products (2)
GitHub Actions/step-security/harden-runner
0 - 2.10.2GitHub Actions
step-security/harden-runner
< 2.10.2
Published
Nov 18, 2024
Tracked Since
Feb 18, 2026