CVE-2024-42471
HIGH7.3EPSS 7.7%@actions/artifact has an Arbitrary File Write via artifact extraction
Published: 9/3/2024Modified: 1/22/2025
Description
### Impact Versions of `actions/artifact` before 2.1.7 are vulnerable to arbitrary file write when using `downloadArtifactInternal`, `downloadArtifactPublic`, or `streamExtractExternal` for extracting a specifically crafted artifact that contains path traversal filenames. ### Patches Upgrade to version 2.1.7 or higher. ### References - https://snyk.io/research/zip-slip-vulnerability - https://github.com/actions/toolkit/pull/1724 ### CVE CVE-2024-42471 ### Credits Justin Taft from Google
Affected packages (1)
- npm/@actions/artifact>= 2.0.0, < 2.1.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-42471
- PATCHhttps://github.com/actions/toolkit
- WEBhttps://github.com/actions/download-artifact/blob/v3/package.json#L31
- WEBhttps://github.com/actions/toolkit/commit/29885a805ef3e95a9862dcaa8431c30981960017
- WEBhttps://github.com/actions/toolkit/pull/1602
- WEBhttps://github.com/actions/toolkit/pull/1666
- WEBhttps://github.com/actions/toolkit/pull/1724
- WEBhttps://github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3
- WEBhttps://snyk.io/research/zip-slip-vulnerability