{"answers":{"affected":"5 open source packages ship an affected version, including actions/runner. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-39321 in the wild and no public exploit code.","fix":"Upgrade actions/runner to a fixed version for your release line: 2.283.4, 2.285.2, 2.289.4 or 2.293.1.","what":"CVE-2022-39321 is a high-severity command injection vulnerability in actions runner, published on 25 Oct 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-39321 and fix it if it is affected.\n\nWhat it is: CVE-2022-39321 is a high-severity command injection vulnerability in actions runner, published on 25 Oct 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-39321 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- actions/runner (GitHub Actions): affected all versions; fixed in 2.283.4\n- actions/runner (GitHub Actions): affected from 2.284.0; fixed in 2.285.2\n- actions/runner (GitHub Actions): affected from 2.286.0; fixed in 2.289.4\n- actions/runner (GitHub Actions): affected from 2.290.0; fixed in 2.293.1\n- actions/runner (GitHub Actions): affected from 2.294.0; fixed in 2.296.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-39321/ (Markdown: https://insights.sbomify.com/CVE-2022-39321/index.md)","id":"CVE-2022-39321","markdown":"https://insights.sbomify.com/CVE-2022-39321/index.md","name":"CVE-2022-39321","record":{"aliases":["GHSA-2c6m-6gqh-6qg3"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"GitHub Actions Runner","requires_auth":"low_privilege","summary":"Attackers can inject commands into Docker invocations via environment variables in GitHub Actions workflows using container features.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"runner","vendor":"github"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["GitHub Actions"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"GitHub Actions Runner vulnerable to Docker Command Escaping","id":"CVE-2022-39321","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":5,"n_references":3,"next":{"headline":"@keystone-6/core vulnerable to field-level access-control bypass for multiselect field","id":"CVE-2022-39322"},"packages":[{"ecosystem":"GitHub Actions","fixed":["2.283.4"],"introduced":["0"],"last_affected":[],"package":"actions/runner","purl":null,"source":"GHSA-2c6m-6gqh-6qg3"},{"ecosystem":"GitHub Actions","fixed":["2.285.2"],"introduced":["2.284.0"],"last_affected":[],"package":"actions/runner","purl":null,"source":"GHSA-2c6m-6gqh-6qg3"},{"ecosystem":"GitHub Actions","fixed":["2.289.4"],"introduced":["2.286.0"],"last_affected":[],"package":"actions/runner","purl":null,"source":"GHSA-2c6m-6gqh-6qg3"},{"ecosystem":"GitHub Actions","fixed":["2.293.1"],"introduced":["2.290.0"],"last_affected":[],"package":"actions/runner","purl":null,"source":"GHSA-2c6m-6gqh-6qg3"},{"ecosystem":"GitHub Actions","fixed":["2.296.2"],"introduced":["2.294.0"],"last_affected":[],"package":"actions/runner","purl":null,"source":"GHSA-2c6m-6gqh-6qg3"}],"prev":{"headline":"Heap buffer overflow in urbdrc channel","id":"CVE-2022-39320"},"products":["runner"],"published":"2022-10-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["actions"]},"summary":"Attackers can inject commands into Docker invocations via environment variables in GitHub Actions workflows using container features.","url":"https://insights.sbomify.com/CVE-2022-39321/"}