CVE-2024-42471: Arbitrary File Write via artifact extraction in actions/artifact

Published Sep 2, 2024
·
Updated

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

Other sources

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.

NVD

Affected Software

3 affected componentsFixes available
npm/@actions/artifact>=2.0.0<2.1.2
2.1.2
GitHub Actions\/artifact Node.js>=2.0.0<2.1.7
GitHub Actions Toolkit

Event History

Sep 2, 2024
CVE Published
via MITRE·04:13 PM
Data Sourced
via MITRE·04:13 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Sep 3, 2024
Advisory Published
via GitHub·08:08 PM
Apr 30, 2025
Exploit Published
12:00 AM
Known Exploited
01:59 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-42471?

CVE-2024-42471 is regarded as a moderate severity vulnerability due to potential arbitrary file write issues.

2

How do I fix CVE-2024-42471?

To fix CVE-2024-42471, upgrade the @actions/artifact package to version 2.1.7 or later.

3

What components are affected by CVE-2024-42471?

CVE-2024-42471 affects versions of the @actions/artifact package before 2.1.7.

4

What types of attacks can exploit CVE-2024-42471?

CVE-2024-42471 can be exploited through crafted artifacts that utilize path traversal filenames.

5

Is CVE-2024-42471 related to GitHub Actions security?

Yes, CVE-2024-42471 falls under vulnerabilities associated with GitHub Actions and its toolkit.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203