cve.bz

CVE-2022-39321 github runner: OS Command Injection

9.9 criticalEPSS 2.0%Fix available

Critical (9.9) in github runner. EPSS 2.0% estimated probability of exploitation activity in the next 30 days. Fixed in actions/runner 2.283.4, 2.285.2, 2.289.4.

On this page
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.

Severity

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
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-39321 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-39321?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-39321?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-39321 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
github:runnerbefore 2.283.4
github:runnerfrom 2.284.0 before 2.285.2
github:runnerfrom 2.286.0 before 2.289.4
github:runnerfrom 2.290.0 before 2.293.1
github:runnerfrom 2.294.0 before 2.296.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2c6m-6gqh-6qg3GitHub Actionsactions/runner>=2.294.0 <2.296.22.296.2
GHSA-2c6m-6gqh-6qg3GitHub Actionsactions/runner>=2.290.0 <2.293.12.293.1
GHSA-2c6m-6gqh-6qg3GitHub Actionsactions/runner>=2.286.0 <2.289.42.289.4
GHSA-2c6m-6gqh-6qg3GitHub Actionsactions/runner>=2.284.0 <2.285.22.285.2
GHSA-2c6m-6gqh-6qg3GitHub Actionsactions/runner<2.283.42.283.4

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON