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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2023-27581— github-slug-action vulnerable to arbitrary code execution

Quick assessment

Affected
rlespinasse github-slug-action
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 Slug action是用于在 GitHub 工作流程中公开 GitHub 环境变量的 slug 值的工具。 GitHub Slug action 4.0.0版本至4.4.1之前版本存在命令注入漏洞。攻击者利用该漏洞在GitHub运行器上执行代码,并泄露在CI管道中使用的任何信息。

CVSS 8.8 · High EPSS 1.58% · P73
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-27581

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-slug-action vulnerable to arbitrary code execution
Source: CVE Program / CVE List V5
Vulnerability Description
github-slug-action is a GitHub Action to expose slug value of GitHub environment variables inside of one's GitHub workflow. Starting in version 4.0.0` and prior to version 4.4.1, this action uses the `github.head_ref` parameter in an insecure way. This vulnerability can be triggered by any user on GitHub on any workflow using the action on pull requests. They just need to create a pull request with a branch name, which can contain the attack payload. This can be used to execute code on the GitHub runners and to exfiltrate any secrets one uses in the CI pipeline. A patched action is available in version 4.4.1. No workaround is available.
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
在命令中使用的特殊元素转义处理不恰当(命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
GitHub Slug action 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
GitHub Slug action是用于在 GitHub 工作流程中公开 GitHub 环境变量的 slug 值的工具。 GitHub Slug action 4.0.0版本至4.4.1之前版本存在命令注入漏洞。攻击者利用该漏洞在GitHub运行器上执行代码,并泄露在CI管道中使用的任何信息。
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
rlespinasse github-slug-action >= 4.0.0, < 4.4.1 -

II. Public POCs for CVE-2023-27581

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-27581

登录查看更多情报信息。

Patches & Fixes for CVE-2023-27581 (1)

Vendor Advisories for CVE-2023-27581 (1)

Security Blog Posts for CVE-2023-27581 (1)

Other References for CVE-2023-27581 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2023-27581

No comments yet


Leave a comment