Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @actions/artifact
  4. ›
  5. CVE-2024-42471

CVE-2024-42471: @actions/artifact has an Arbitrary File Write via artifact extraction

September 3, 2024 (updated January 22, 2025)

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.

References

  • github.com/actions/download-artifact/blob/v3/package.json
  • github.com/actions/toolkit
  • github.com/actions/toolkit/commit/29885a805ef3e95a9862dcaa8431c30981960017
  • github.com/actions/toolkit/pull/1602
  • github.com/actions/toolkit/pull/1724
  • github.com/actions/toolkit/security/advisories/GHSA-6q32-hq47-5qq3
  • github.com/advisories/GHSA-6q32-hq47-5qq3
  • nvd.nist.gov/vuln/detail/CVE-2024-42471
  • snyk.io/research/zip-slip-vulnerability

Code Behaviors & Features

Detect and mitigate CVE-2024-42471 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.1.2

Fixed versions

  • 2.1.2

Solution

Upgrade to version 2.1.2 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@actions/artifact/CVE-2024-42471.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:25 +0000.