{"id":"CVE-2022-39321","published":"2022-10-25T00:00:00Z","modified":"2025-04-23T16:44:36Z","title":"GitHub Actions Runner vulnerable to Docker Command Escaping","vendor":"actions","product":"runner","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02007,"percentile":0.81312,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3","tags":[]},{"url":"https://github.com/actions/runner/pull/2107","tags":[]},{"url":"https://github.com/actions/runner/pull/2108","tags":[]}],"priority":{"score":22.4,"factors":[{"name":"EPSS percentile","points":16.26},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"actions","affectedVersions":[{"vendor":"actions","product":"runner","versions":["< 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"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:47:37.864606Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"GitHub Actions","package":"actions/runner","vulnerableRanges":[">=2.294.0, <2.296.2",">=2.290.0, <2.293.1",">=2.286.0, <2.289.4",">=2.284.0, <2.285.2","<2.283.4"],"patched":["2.296.2","2.293.1","2.289.4","2.285.2","2.283.4"],"from":["GHSA-2c6m-6gqh-6qg3"],"provenance":"source"}],"summary":{"text":"The GitHub Actions Runner (the application that executes GitHub Actions workflow jobs) contains an OS command injection flaw in how it encodes environment variables into the docker CLI invocations used for job containers, service containers, and container actions, allowing crafted input to escape the variable and alter the docker command. An attacker who can supply untrusted input into environment variables of jobs that use these container features can exploit it with low complexity and low privileges, without user interaction, to affect the docker command run by the runner.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:42:07Z"},"euvd":{"id":"EUVD-2022-6988","exploited":false,"provenance":"source"}}