Arbitrary File Write via Path Traversal in actions/artifact pre-2.1.2
CVE-2024-42471 Published on September 2, 2024
Arbitrary File Write via artifact extraction in actions/artifact
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.
Vulnerability Analysis
CVE-2024-42471 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality, a high impact on integrity, and no impact on availability.
Weakness Type
What is a Directory traversal Vulnerability?
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2024-42471 has been classified to as a Directory traversal vulnerability or weakness.
Products Associated with CVE-2024-42471
stack.watch emails you whenever new vulnerabilities are published in github Actionsartifact or github Actions Toolkit. Just hit a watch button to start following.
Affected Versions
actions toolkit Version >= 2.0.0, < 2.1.2 is affected by CVE-2024-42471Vulnerable Packages
The following package name and versions may be associated with CVE-2024-42471
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| npm | @actions/artifact | < 2.1.7 | 2.1.7 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.