Read the docs
TI-2024-39087 Aliases GHSA-5xr6-xhww-33m4

Artifact poisoning vulnerability in action-download-artifact v5 and earlier

Priority LOW 38CWE-349Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### Summary In versions of `dawidd6/action-download-artifact` before v6, a repository's forks were also searched by default when attempting to find matching artifacts. This could be exploited by an unprivileged attacker to introduce compromised artifacts (such as malicious executables) into a privileged workflow context, as creating a fork requires no privileges. Users should immediately upgrade to v6 or newer, which changes the default behavior to avoid searching forks for matching artifacts. Users who cannot upgrade should explicitly set `allow_forks: false` to disable searching forks for artifacts. ### Details GitHub's artifact storage for workflows does not natively distinguish between artifacts created by a repository and artifacts created by forks of that repository. As a result, attempting to retrieve the "latest" artifact for a workflow run can return artifacts produced by a fork, rather than its upstream. Because any GitHub user can create a fork of a public repository, this allows for artifact poisoning in the following scenarios (as well as potentially others): 1. Repository `alice/foo` runs `build.yml`, producing `build.exe` 2. Repository `alice/foo` runs `publish.yml`, which uses `action-download-artifact@v5` to retrieve the latest `build.exe` from `build.yml` To compromise `publish.yml` in this scenario, Mallory forks `alice/foo` to `mallory/foo`, and then modifies `build.yml` to produce a compromised `build.exe`. Mallory can then repeatedly trigger their copy of `build.yml` to ensure that their compromised `build.exe` is always the latest artifact, meaning that Alice's `publish.yml` will retrieve it. Additional details on this vulnerability can be found in this blog post from 2022: * https://www.legitsecurity.com/blog/artifact-poisoning-vulnerability-discovered-in-rust ### Impact This vulnerability impacts all repositories on GitHub that use `action-download-artifacts@v5` or older and do **not** disable `allow_forks: true`, which is the default. If a repository is affected, the severity ranges from downstream contamination (such as publishing attacker-controlled artifacts) to direct workflow compromise (if the retrieved artifact is then executed in a privileged workflow context, such as `push` or `pull_request_target`).

Why it matters now

Fix Fixed dawidd6/action-download-artifact (GitHub Actions): 6

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—dawidd6/action-download-artifact (GitHub Actions)before 66Patch availableGHSA-5xr6-xhww-33m4
  • dawidd6/action-download-artifact (GitHub Actions) Vendor— Affected before 6 Fixed in 6 Patch available GHSA-5xr6-xhww-33m4

Remediation

  • Fix · GHSA-5xr6-xhww-33m4 dawidd6/action-download-artifact (GitHub Actions) Fixed in 6 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-5xr6-xhww-33m4

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences