Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS02cTMyLWhxNDctNXFxM84AA_QF
@actions/artifact has an Arbitrary File Write via artifact extraction
Impact
Versions 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.
Patches
Upgrade to version 2.1.7 or higher.
References
CVE
CVE-2024-42471
Credits
Justin Taft from Google
Permalink: https://github.com/advisories/GHSA-6q32-hq47-5qq3JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02cTMyLWhxNDctNXFxM84AA_QF
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 3 months ago
Updated: 3 months ago
CVSS Score: 7.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
Identifiers: GHSA-6q32-hq47-5qq3, CVE-2024-42471
References:
- https://github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3
- https://nvd.nist.gov/vuln/detail/CVE-2024-42471
- https://github.com/actions/toolkit/pull/1724
- https://github.com/actions/toolkit/commit/29885a805ef3e95a9862dcaa8431c30981960017
- https://snyk.io/research/zip-slip-vulnerability
- https://github.com/actions/toolkit/pull/1602
- https://github.com/actions/download-artifact/blob/v3/package.json#L31
- https://github.com/advisories/GHSA-6q32-hq47-5qq3
Blast Radius: 19.5
Affected Packages
npm:@actions/artifact
Dependent packages: 32Dependent repositories: 475
Downloads: 478,850 last month
Affected Version Ranges: >= 2.0.0, < 2.1.7
Fixed in: 2.1.7
All affected versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6
All unaffected versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.5.1, 0.5.2, 0.6.0, 0.6.1, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.1.2, 2.1.7, 2.1.8, 2.1.9, 2.1.10, 2.1.11