CVE-2022-39321
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 2.0% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 2.0% in the next 30 days (EPSS).
- Severity: 8.8 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 2.0% · EPSS, next 30 days
- Weakness
- CWE-78 · OS command injection
- Record status
- Modified
Affected
- GitHub Runner < 2.283.4
- GitHub Runner < 2.285.2
- GitHub Runner < 2.289.4
- GitHub Runner < 2.293.1
- GitHub Runner < 2.296.2
Attack profile CVSS 3.1 · 8.8
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2022-39321.md and follow it. Check whether this project is affected by CVE-2022-39321. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/actions/runner/pull/2107
- https://github.com/actions/runner/pull/2108
- https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3
- https://github.com/actions/runner/pull/2107
- https://github.com/actions/runner/pull/2108
- https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3
References
- https://github.com/actions/runner/pull/2107
- https://github.com/actions/runner/pull/2108
- https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3
- https://github.com/actions/runner/pull/2107
- https://github.com/actions/runner/pull/2108
- https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3