{"id":"CVE-2024-42471","aliases":["CVE-2024-42471","GHSA-6q32-hq47-5qq3"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary File Write via artifact extraction in actions/artifact","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nVersions 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.\n\n### Patches\n\nUpgrade to version 2.1.7 or higher. \n\n### References\n\n- https://snyk.io/research/zip-slip-vulnerability\n- https://github.com/actions/toolkit/pull/1724\n\n### CVE\n\nCVE-2024-42471\n\n### Credits\n\nJustin Taft from Google","format":"markdown","source":"ghsa"},{"lang":"es","text":"acciones/artifact es el kit de herramientas de GitHub para desarrollar acciones de GitHub. Las versiones de `actions/artifact` anteriores a la 2.1.7 son vulnerables a la escritura arbitraria de archivos cuando se usa `downloadArtifactInternal`, `downloadArtifactPublic` o `streamExtractExternal` para extraer un artefacto manipulado específicamente que contiene nombres de archivos de path traversal. Se recomienda a los usuarios que actualicen a la versión 2.1.7 o superior. No existen workarounds para este problema.","source":"nvd"}],"published":"2024-09-02T16:13:50.712Z","modified":"2026-06-17T07:49:30.840Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":7.3,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.1.2","status":"affected"}],"vendor":"actions","product":"toolkit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"npm","package":"@actions/artifact","purl":"pkg:npm/%40actions/artifact","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.1.7"}],"vendor":"github","product":"actions/artifact","cpe":"cpe:2.3:a:github:actions\\/artifact:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[],"vendor":"github","product":"actions_toolkit","cpe":"cpe:2.3:a:github:actions_toolkit:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/actions/toolkit/pull/1666","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/research/zip-slip-vulnerability","tags":["not-applicable","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42471","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/actions/toolkit/pull/1602","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/actions/toolkit/pull/1724","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/actions/toolkit/commit/29885a805ef3e95a9862dcaa8431c30981960017","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/actions/download-artifact/blob/v3/package.json#L31","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/actions/toolkit","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-01-23T21:40:08.030Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42471","url":"https://www.cve.org/CVERecord?id=CVE-2024-42471","licence":"CVE Terms of Use","modified":"2025-08-27T21:33:03.045Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6q32-hq47-5qq3","url":"https://github.com/advisories/GHSA-6q32-hq47-5qq3","licence":"CC-BY-4.0","modified":"2025-01-22T18:44:59.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42471","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42471","licence":"Public domain","modified":"2026-06-17T07:49:30.840Z"}],"updatedAt":"2026-11-25T22:58:44.993Z","epss":{"score":0.03219,"percentile":0.88563,"date":"2026-12-02T12:00:21.000Z"}}