CVE-2024-42471
HIGH 7.5CVSS 3.1@actions/artifact has an Arbitrary File Write via artifact extraction
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.
- Published
- 2 Sep 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-6q32-hq47-5qq3
- Sources
- NVDJSONOSV GHSA-6q32-hq47-5qq3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | github | actions/artifactcpe:2.3:a:github:actions\/artifact:*:*:*:*:*:node.js:*:* |
>= 2.0.0, < 2.1.7 | 2.1.7 |
| NVD | github | actions_toolkitcpe:2.3:a:github:actions_toolkit:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | npm | @actions/artifact | >= 2.0.0, < 2.1.2 | 2.1.2 |
References
- https://github.com/actions/toolkit/pull/1666 · WEB
- https://github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3 · Vendor Advisory, 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
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 2 Sep 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Sep 2024)