# CVE-2022-39321: GitHub Actions Runner vulnerable to Docker Command Escaping

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.01%, higher than 81% of CVEs (2026-12-01)
- Published: 2022-10-25T00:00:00.000Z
- Modified: 2026-06-17T04:58:08.400Z
- Also known as: GHSA-2c6m-6gqh-6qg3
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- actions runner: < 2.283.4; >= 2.284.0, < 2.285.2; >= 2.286.0, < 2.289.4; >= 2.290.0, < 2.293.1; >= 2.294.0, < 2.296.2
- actions/runner (GitHub Actions): from 2.294.0 before 2.296.2; from 2.290.0 before 2.293.1; from 2.286.0 before 2.289.4; from 2.284.0 before 2.285.2; before 2.283.4
- github runner: before 2.283.4; from 2.284.0 before 2.285.2; from 2.286.0 before 2.289.4; from 2.290.0 before 2.293.1; from 2.294.0 before 2.296.2

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3> (third-party-advisory, web)
- <https://github.com/actions/runner/pull/2107> (patch, release-notes, third-party-advisory, web)
- <https://github.com/actions/runner/pull/2108> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39321> (advisory)
- <https://github.com/actions/runner> (package)

## Sources

- CVE List: [CVE-2022-39321](https://www.cve.org/CVERecord?id=CVE-2022-39321), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-2c6m-6gqh-6qg3](https://github.com/advisories/GHSA-2c6m-6gqh-6qg3), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-39321](https://nvd.nist.gov/vuln/detail/CVE-2022-39321), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39321 · Whole record: https://cve.day/CVE-2022-39321.json · Rebuilt by cve.day 2026-11-25T22:58:15.993Z
