GHSA-cxww-7g56-2vh6 @actions/download-artifact has an Arbitrary File Write via artifact extraction
Attackers can write arbitrary files via path traversal in crafted artifacts, potentially leading to code execution in CI/CD environments.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-cxww-7g56-2vh6?
GHSA-cxww-7g56-2vh6 is a path traversal vulnerability in actions/download-artifact, published on 3 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Impact
Versions of actions/download-artifact before 4.1.3 are vulnerable to arbitrary file write when downloading and extracting a specifically crafted artifact that contains path traversal filenames.
Patches
Upgrade to version 4.1.3 or higher. Alternatively use 'v4' tag which points to the latest and secure version.
References
- https://snyk.io/research/zip-slip-vulnerability
- https://github.com/actions/download-artifact/releases/tag/v4.1.3
- https://github.com/actions/download-artifact/pull/299
CVE
CVE-2024-42471
Credits
Justin Taft from Google
Which versions are affected by GHSA-cxww-7g56-2vh6?
1 open source package ship an affected version, including actions/download-artifact.
| Package | Affected | Fixed in |
|---|---|---|
actions/download-artifact GitHub Actions | From 4.0.0 | 4.1.3 |
How do I fix GHSA-cxww-7g56-2vh6?
Upgrade actions/download-artifact to 4.1.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is GHSA-cxww-7g56-2vh6 being exploited?
There is no known exploitation of GHSA-cxww-7g56-2vh6 in the wild and no public exploit code.