CVE-2022-39321
GitHub Actions Runner Environment Variable Escaping Vulnerability
Description
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.
INFO
Published Date :
Oct. 25, 2022, 5:15 p.m.
Last Modified :
Oct. 28, 2022, 6:27 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
6.0
Exploitability Score :
3.1
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-39321
.
URL | 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 |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-39321
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-39321
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Oct. 28, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Changed Reference Type https://github.com/actions/runner/pull/2107 No Types Assigned https://github.com/actions/runner/pull/2107 Patch, Release Notes, Third Party Advisory Changed Reference Type https://github.com/actions/runner/pull/2108 No Types Assigned https://github.com/actions/runner/pull/2108 Patch, Third Party Advisory Changed Reference Type https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3 No Types Assigned https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3 Third Party Advisory Added CWE NIST CWE-78 Added CPE Configuration OR *cpe:2.3:a:github:runner:*:*:*:*:*:*:*:* versions up to (excluding) 2.283.4 *cpe:2.3:a:github:runner:*:*:*:*:*:*:*:* versions from (including) 2.284.0 up to (excluding) 2.285.2 *cpe:2.3:a:github:runner:*:*:*:*:*:*:*:* versions from (including) 2.286.0 up to (excluding) 2.289.4 *cpe:2.3:a:github:runner:*:*:*:*:*:*:*:* versions from (including) 2.290.0 up to (excluding) 2.293.1 *cpe:2.3:a:github:runner:*:*:*:*:*:*:*:* versions from (including) 2.294.0 up to (excluding) 2.296.2
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-39321
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-39321
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.12 }} -0.00%
score
0.46751
percentile