CVE-2022-39321

GitHub Actions Runner is the application that runs a job from a GitHub Actions workflow. The actions runner invokes the docker cli directly in order to run job containers, service containers, or container actions. A bug in the logic for how the environment is encoded into these docker commands was discovered in versions prior to 2.296.2, 2.293.1, 2.289.4, 2.285.2, and 2.283.4 that allows an input to escape the environment variable and modify that docker command invocation directly. Jobs that use container actions, job containers, or service containers alongside untrusted user inputs in environment variables may be vulnerable. The Actions Runner has been patched, both on `github.com` and hotfixes for GHES and GHAE customers in versions 2.296.2, 2.293.1, 2.289.4, 2.285.2, and 2.283.4. GHES and GHAE customers may want to patch their instance in order to have their runners automatically upgrade to these new runner versions. As a workaround, users may consider removing any container actions, job containers, or service containers from their jobs until they are able to upgrade their runner versions.
References
Link Resource
https://github.com/actions/runner/pull/2107 Patch Release Notes Third Party Advisory
https://github.com/actions/runner/pull/2108 Patch Third Party Advisory
https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3 Third Party Advisory
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:github:runner:*:*:*:*:*:*:*:*
cpe:2.3:a:github:runner:*:*:*:*:*:*:*:*
cpe:2.3:a:github:runner:*:*:*:*:*:*:*:*
cpe:2.3:a:github:runner:*:*:*:*:*:*:*:*
cpe:2.3:a:github:runner:*:*:*:*:*:*:*:*

History

28 Oct 2022, 18:27

Type Values Removed Values Added
References (MISC) https://github.com/actions/runner/pull/2107 - (MISC) https://github.com/actions/runner/pull/2107 - Patch, Release Notes, Third Party Advisory
References (MISC) https://github.com/actions/runner/pull/2108 - (MISC) https://github.com/actions/runner/pull/2108 - Patch, Third Party Advisory
References (CONFIRM) https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3 - (CONFIRM) https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3 - Third Party Advisory
First Time Github
Github runner
CPE cpe:2.3:a:github:runner:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.9
CWE CWE-78

25 Oct 2022, 17:37

Type Values Removed Values Added
New CVE

Information

Published : 2022-10-25 17:15

Updated : 2023-12-10 14:35


NVD link : CVE-2022-39321

Mitre link : CVE-2022-39321

CVE.ORG link : CVE-2022-39321


JSON object : View

Products Affected

github

  • runner
CWE
CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')