中危 github runner os命令中使用的特殊元素转义处理不恰当(os命令注入)
CVE编号
CVE-2022-39321利用情况
暂无补丁情况
官方补丁披露时间
2022-10-26漏洞描述
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.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接 |
|
---|---|
https://github.com/actions/runner/pull/2107 | |
https://github.com/actions/runner/pull/2108 | |
https://github.com/actions/runner/security/advisories/GHSA-2c6m-6gqh-6qg3 |
受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | github | runner | * | Up to (excluding) 2.283.4 | |||||
运行在以下环境 | |||||||||
应用 | github | runner | * | From (including) 2.284.0 | Up to (excluding) 2.285.2 | ||||
运行在以下环境 | |||||||||
应用 | github | runner | * | From (including) 2.286.0 | Up to (excluding) 2.289.4 | ||||
运行在以下环境 | |||||||||
应用 | github | runner | * | From (including) 2.290.0 | Up to (excluding) 2.293.1 | ||||
运行在以下环境 | |||||||||
应用 | github | runner | * | From (including) 2.294.0 | Up to (excluding) 2.296.2 |
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 全局影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-78 | OS命令中使用的特殊元素转义处理不恰当(OS命令注入) |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论