Advisory

GHSA-6q32-hq47-5qq3

Also known as: CVE-2024-42471

Summary

@actions/artifact has an Arbitrary File Write via artifact extraction

Details

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

  • https://snyk.io/research/zip-slip-vulnerability
  • https://github.com/actions/toolkit/pull/1724

CVE

CVE-2024-42471

Credits

Justin Taft from Google

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-09-03 20:08 UTC
Modified
2025-01-22 18:44 UTC

Affected packages and fixes

@actions/artifact

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.1.2 (semver)

Fixed versions

2.1.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences