Vulnerability · Published Sep 2, 2024 · Assigned by GitHub_M
CVE-2024-42471Arbitrary File Write via artifact extraction in actions/artifact
High 7.3
In plain English
A high-severity path traversal in toolkit from actions. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @actions/artifact | 2.1.2 | GHSA-6q32-hq47-5qq3 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
References
- https://github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3 x_refsource_CONFIRM
- https://github.com/actions/toolkit/pull/1666 x_refsource_MISC
- https://snyk.io/research/zip-slip-vulnerability x_refsource_MISC