# CVE-2024-42471: Arbitrary File Write via artifact extraction in actions/artifact

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.22%, higher than 88% of CVEs (2026-12-02)
- Published: 2024-09-02T16:13:50.712Z
- Modified: 2026-06-17T07:49:30.840Z
- Also known as: GHSA-6q32-hq47-5qq3
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- actions toolkit: >= 2.0.0, < 2.1.2
- @actions/artifact (npm): from 2.0.0 before 2.1.2
- github actions/artifact: from 2.0.0 before 2.1.7
- github actions_toolkit: no versions given

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3> (vendor-advisory, web)
- <https://github.com/actions/toolkit/pull/1666> (web)
- <https://snyk.io/research/zip-slip-vulnerability> (not-applicable, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-42471> (advisory)
- <https://github.com/actions/toolkit/pull/1602> (web)
- <https://github.com/actions/toolkit/pull/1724> (web)
- <https://github.com/actions/toolkit/commit/29885a805ef3e95a9862dcaa8431c30981960017> (web)
- <https://github.com/actions/download-artifact/blob/v3/package.json#L31> (web)
- <https://github.com/actions/toolkit> (package)

## Sources

- CVE List: [CVE-2024-42471](https://www.cve.org/CVERecord?id=CVE-2024-42471), CVE Terms of Use, modified 2025-08-27
- GitHub Advisory Database: [GHSA-6q32-hq47-5qq3](https://github.com/advisories/GHSA-6q32-hq47-5qq3), CC-BY-4.0, modified 2025-01-22
- NVD: [CVE-2024-42471](https://nvd.nist.gov/vuln/detail/CVE-2024-42471), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-42471 · Whole record: https://cve.day/CVE-2024-42471.json · Rebuilt by cve.day 2026-11-25T22:58:44.993Z
