{"schemaVersion":3,"id":"CVE-2024-42471","aliases":["GHSA-6q32-hq47-5qq3"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-09-02T16:13:50.712Z","modified":"2025-08-27T21:33:03.045Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":8.6,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","exploitability":5.4,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03219,"percentile":0.88041,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03219},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03219,"percentile":0.88041}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03219,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03219,"percentile":0.88041}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"52276","name":"unzip-stream 0.3.1 - Arbitrary File Write","source":"exploit-database","url":"https://www.exploit-db.com/exploits/52276","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"local","platforms":["nodejs"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"local","platform":"nodejs","file":"exploits/nodejs/local/52276.py","codes":["CVE-2024-42471"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"actions","product":"toolkit","name":"toolkit","label":"toolkit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, < 2.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.1.2","eol":null,"hubHref":"/vendor/actions/toolkit"},{"vendor":"github","product":"actions_toolkit","name":"actions toolkit","label":"actions_toolkit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/github/actions_toolkit"},{"vendor":"github","product":"actions\\/artifact","name":"actions\\/artifact","label":"actions\\/artifact","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, < 2.1.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.1.7","eol":null,"hubHref":"/vendor/github/actionsartifact"},{"vendor":"@actions","product":"artifact","name":"@actions/artifact","label":"artifact","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@actions/artifact","purlType":"npm","versions":[{"text":"≥ 2.0.0, < 2.1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.1.2","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3","label":"github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://github.com/actions/toolkit/pull/1666","label":"github.com/actions/toolkit/pull/1666","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://snyk.io/research/zip-slip-vulnerability","label":"snyk.io/research/zip-slip-vulnerability","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Not Applicable"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42471","label":"nvd.nist.gov/vuln/detail/CVE-2024-42471","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/actions/toolkit/pull/1602","label":"github.com/actions/toolkit/pull/1602","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/actions/toolkit/pull/1724","label":"github.com/actions/toolkit/pull/1724","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/actions/toolkit/commit/29885a805ef3e95a9862dcaa8431c30981960017","label":"github.com/actions/toolkit/commit/29885a805ef3e95a9862dcaa8431c30981960017","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/actions/download-artifact/blob/v3/package.json#L31","label":"github.com/actions/download-artifact/blob/v3/package.json","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/actions/toolkit","label":"github.com/actions/toolkit","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-09-02T16:13:50.712Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-08-27T21:33:03.045Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:09:33.179Z","stale":false,"partial":false}}