What’s Vulnerable › Vulnerabilities
CVE-2024-42471: Arbitrary File Write via artifact extraction in actions/artifact
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-09-02 · updated 2026-06-17
- Weakness: CWE-22
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 products
- GitHub Actions/Artifact: from 2.0.0 before 2.1.7 — fixed in 2.1.7
- GitHub Actions Toolkit: all versions
How to fix
Upgrade to a fixed version: GitHub Actions/Artifact 2.1.7. Check the vendor advisory for mitigations.
References
- https://github.com/actions/toolkit/pull/1666
- https://github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3
- https://snyk.io/research/zip-slip-vulnerability
Get alerted when CVE-2024-42471 or the next vulnerability affects your stack