Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
actions runner
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

GitHub Actions Runner是从 GitHub Actions 工作流运行作业的应用程序。 GitHub Actions Runner存在安全漏洞,该漏洞源于存在逻辑错误,该错误允许输入转义环境变量并直接修改该docker命令调用,使用容器操作、作业容器或服务容器以及环境变量中不受信任的用户输入的作业可能容易受到攻击。以下产品和版本受到影响:2.296.2版本、2.293.1版本、2.289.4版本、2.285.2版本和2.283.4 版本。

CVSS 8.8 · High EPSS 1.63% · P75

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-39321

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
GitHub Actions Runner vulnerable to Docker Command Escaping
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
GitHub Actions Runner 操作系统命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
GitHub Actions Runner是从 GitHub Actions 工作流运行作业的应用程序。 GitHub Actions Runner存在安全漏洞,该漏洞源于存在逻辑错误,该错误允许输入转义环境变量并直接修改该docker命令调用,使用容器操作、作业容器或服务容器以及环境变量中不受信任的用户输入的作业可能容易受到攻击。以下产品和版本受到影响:2.296.2版本、2.293.1版本、2.289.4版本、2.285.2版本和2.283.4 版本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
actions runner < 2.283.4 -

II. Public POCs for CVE-2022-39321

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-39321

请登录查看更多情报信息。

Patches & Fixes for CVE-2022-39321 (2)

Vendor Advisories for CVE-2022-39321 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-39321

No comments yet


Leave a comment