一、 漏洞 CVE-2024-42471 基础信息
漏洞信息
                                        # 通过actions/artifact的工件提取任意文件写入

## 漏洞概述
`actions/artifact` 是一个用于开发 GitHub Actions 的 GitHub Toolkit。在2.x分支的某些版本中,存在任意文件写入漏洞,这是由于使用特定的函数处理精心设计的包含路径遍历文件名的工件时引发的。

## 影响版本
2.x分支的版本低于2.1.2均受到影响。

## 漏洞细节
使用 `downloadArtifactInternal`、`downloadArtifactPublic` 或 `streamExtractExternal` 函数时,如果这些函数处理了一个经过特别设计的、包含路径遍历文件名的工件,就可能导致任意文件写入漏洞。

## 影响
攻击者可能利用此漏洞将恶意文件写入任意路径,从而可能导致进一步的安全威胁。建议用户升级到2.1.2或更高版本以缓解这一风险。目前没有针对此问题的已知变通解决方案。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
Arbitrary File Write via artifact extraction in actions/artifact
来源:美国国家漏洞数据库 NVD
漏洞描述信息
actions/artifact is the GitHub ToolKit for developing GitHub Actions. Versions of `actions/artifact` on the 2.x branch before 2.1.2 are vulnerable to arbitrary file write when using `downloadArtifactInternal`, `downloadArtifactPublic`, or `streamExtractExternal` for extracting a specifically crafted artifact that contains path traversal filenames. Users are advised to upgrade to version 2.1.2 or higher. There are no known workarounds for this issue.
来源:美国国家漏洞数据库 NVD
CVSS信息
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
来源:美国国家漏洞数据库 NVD
漏洞类别
对路径名的限制不恰当(路径遍历)
来源:美国国家漏洞数据库 NVD
漏洞标题
GitHub Actions Toolkit 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
GitHub Actions Toolkit是GitHub Actions开源的一个 Github 操作工具包。 GitHub Actions Toolkit 2.1.7之前版本存在安全漏洞。攻击者利用该漏洞可以读取运行应用程序的服务器上的任意文件。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2024-42471 的公开POC
# POC 描述 源链接 神龙链接
1 unzip-stream file write/overwrite vulnerability https://github.com/theMcSam/CVE-2024-42471-PoC POC详情
三、漏洞 CVE-2024-42471 的情报信息
  • 标题: Use latest `unzip-stream` and `unzip.Extract` by bethanyj28 · Pull Request #1724 · actions/toolkit · GitHub -- 🔗来源链接

    标签: x_refsource_MISC

    神龙速读
  • 标题: Use `unzip.Parse` over `unzip.Extract` by bethanyj28 · Pull Request #1666 · actions/toolkit · GitHub -- 🔗来源链接

    标签: x_refsource_MISC

  • 标题: Zip Slip Vulnerability | Snyk -- 🔗来源链接

    标签: x_refsource_MISC

    神龙速读
  • 标题: Arbitrary File Write via artifact extraction · Advisory · actions/toolkit · GitHub -- 🔗来源链接

    标签: x_refsource_CONFIRM

    神龙速读
  • https://nvd.nist.gov/vuln/detail/CVE-2024-42471
四、漏洞 CVE-2024-42471 的评论

暂无评论


发表评论