{"id":"CVE-2024-42471","published":"2024-09-02T16:13:50Z","modified":"2025-08-27T21:33:03Z","title":"Arbitrary File Write via artifact extraction in actions/artifact","vendor":"actions","product":"toolkit","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03219,"percentile":0.88523,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/actions/toolkit/pull/1666","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/research/zip-slip-vulnerability","tags":["x_refsource_MISC"]}],"priority":{"score":27.8,"factors":[{"name":"EPSS percentile","points":17.7},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.11}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2025-04-30"},"pocGithub":{"count":1,"skipped":0,"earliest":"2025-04-24","earliestUrl":"https://github.com/theMcSam/CVE-2024-42471-PoC","repos":[{"name":"theMcSam/CVE-2024-42471-PoC","url":"https://github.com/theMcSam/CVE-2024-42471-PoC","stars":0,"created":"2025-04-24"}]},"first":{"date":"2025-04-24","source":"PoC-in-GitHub","url":"https://github.com/theMcSam/CVE-2024-42471-PoC"},"provenance":"source"},"vendorSlug":"actions","affectedVersions":[{"vendor":"actions","product":"toolkit","versions":[">= 2.0.0, < 2.1.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-01-23T21:40:08.030878Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@actions/artifact","vulnerableRanges":[">=2.0.0, <2.1.2"],"patched":["2.1.2"],"from":["GHSA-6q32-hq47-5qq3"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary file write, caused by improper limitation of pathnames, in the artifact extraction functions (downloadArtifactInternal, downloadArtifactPublic and streamExtractExternal) of the actions/artifact package in the actions toolkit, affecting versions on the 2.x branch before 2.1.2. An attacker who supplies a crafted artifact containing path traversal filenames can write files to arbitrary locations on the system when it is extracted, which requires low-privilege authentication and user interaction, with network access as the attack vector.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:19:35Z"},"euvd":{"id":"EUVD-2024-2737","exploited":false,"provenance":"source"},"exploits":[{"id":52276,"url":"https://www.exploit-db.com/exploits/52276","title":"unzip-stream 0.3.1 - Arbitrary File Write","date":"2025-04-30","verified":false,"provenance":"source"}]}