Supply chain · March 14, 2025

tj-actions/changed-files compromise printed CI secrets into GitHub Actions logs

ResolvedUpdated CVE-2025-30066CVE-2025-30154GHSA-mrrh-fwg8-r2c3GHSA-qmg3-hpqr-gqvc

In March 2025 an attacker repointed version tags of the popular GitHub Action tj-actions/changed-files to a malicious commit that read secrets out of the runner's memory and printed them, double base64-encoded, into workflow logs. CISA says reviewdog/action-setup@v1 was compromised days earlier and may have enabled it. Any workflow that ran either action in the compromise window should treat every secret available to that job as exposed and rotate it.

DisclosedMarch 14, 2025
Earliest known activityMarch 11, 2025
Affectedtj-actions/changed-files, reviewdog/action-setup, GitHub Actions
TypeSupply chain
StatusResolved
CVECVE-2025-30066, CVE-2025-30154

What was exposed

Every secret the GitHub Actions runner held for the job: repository and organization secrets, the job's GITHUB_TOKEN, cloud access keys, npm tokens, GitHub personal access tokens and private keys. CISA lists access keys, GitHub PATs, npm tokens and private RSA keys. StepSecurity said it saw no sign that the values were sent to a remote server; the exposure was through the build logs, so public repositories with public logs were at the highest risk because anyone could read and decode them.

Am I affected?

You are affected if any workflow in your organization ran tj-actions/changed-files between 2025-03-12 00:00 UTC and 2025-03-15 12:00 UTC (the window CISA gives), whatever tag you referenced, unless you pinned a known-good commit SHA. Workflows that ran reviewdog/action-setup@v1, or the reviewdog actions that embed it (action-shellcheck, action-composite-template, action-staticcheck, action-ast-grep, action-typos), on 2025-03-11 between 18:42 and 20:31 UTC are also affected. Search your workflow run logs from those windows for an unexpected base64 blob in the action's output.

What to do now

  1. Search every repository's workflows for tj-actions/changed-files and the listed reviewdog/* actions, and list the runs inside the compromise windows.
  2. Read those run logs. If a log contains a double base64-encoded blob, decode it to see which secret names were printed, then delete the log.
  3. Rotate every secret that job could read, starting with cloud keys, npm and PyPI publish tokens and GitHub PATs. Treat them as compromised even if your repository is private.
  4. Upgrade tj-actions/changed-files to v46.0.1 or later, and update any workflow that referenced the malicious commit SHA directly.
  5. Pin third-party actions to a full commit SHA you have reviewed, rather than to a tag that can be moved.

Keys to rotate

Guides to the credentials this incident put at risk:

Timeline

  1. reviewdog/action-setup@v1 is compromised between 18:42 and 20:31 UTC, according to its advisory. Source
  2. StepSecurity's Harden-Runner flags an unexpected outbound call from workflows using tj-actions/changed-files and publishes a warning. Source
  3. GitHub removes the action, then restores the repository with all versions cleaned. The advisory GHSA-mrrh-fwg8-r2c3 (CVE-2025-30066) is published, with v46.0.1 as the fixed release. Source
  4. CISA publishes an alert covering both actions and their compromise windows. Source
  5. CISA's Known Exploited Vulnerabilities catalog now lists both CVEs. NVD records CVE-2025-30066 as added on 18 March and CVE-2025-30154 on 24 March. Source

Indicators

From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.

  • Malicious tj-actions/changed-files commit 0e58ed8671d6b60d0890c21b07f8835ace038e67, to which tags were repointed (the advisory names v1.0.0, v35.7.7-sec and v44.5.1 among them).
  • Malicious reviewdog/action-setup commit f0d342d; the fixed retag is 3f401fe.
  • An outbound request from the runner to gist.githubusercontent.com fetching a memdump.py script.

Frequently asked questions

Am I affected by the tj-actions/changed-files incident?

You are affected if any workflow in your organization ran tj-actions/changed-files between 2025-03-12 00:00 UTC and 2025-03-15 12:00 UTC (the window CISA gives), whatever tag you referenced, unless you pinned a known-good commit SHA. Workflows that ran reviewdog/action-setup@v1, or the reviewdog actions that embed it (action-shellcheck, action-composite-template, action-staticcheck, action-ast-grep, action-typos), on 2025-03-11 between 18:42 and 20:31 UTC are also affected. Search your workflow run logs from those windows for an unexpected base64 blob in the action's output.

What was exposed in the tj-actions/changed-files incident?

Every secret the GitHub Actions runner held for the job: repository and organization secrets, the job's GITHUB_TOKEN, cloud access keys, npm tokens, GitHub personal access tokens and private keys. CISA lists access keys, GitHub PATs, npm tokens and private RSA keys. StepSecurity said it saw no sign that the values were sent to a remote server; the exposure was through the build logs, so public repositories with public logs were at the highest risk because anyone could read and decode them.

Which keys should I rotate?

Rotate any GitHub, AWS (IAM access keys), npm, PyPI, Docker Hub credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.