Skip to content
Write-up Intermediate

Unraveling CVE-2025–30066: The Hidden Risk of Mutable Version T

Attackers compromised a GitHub Personal Access Token for the tj-actions/changed-files action and retroactively modified version tags to point to a malicious commit. Any project referencing those tags executed code that dumped CI/CD secrets such as AWS keys and GitHub tokens into workflow logs.

Ibrahim Cisse Follow

Published on medium.com

GitHub Actions has transformed software development by integrating automation directly into source code repositories. However, this convenience also brings hidden risks especially when third-party actions are involved.

Ibrahim Cisse, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the action's version tags were mutable and the bot account's Personal Access Token was compromised, allowing attackers to repoint tags to a malicious commit.

Impact

Secrets printed into logs could be harvested by attackers, potentially compromising cloud infrastructure and source code across over 23,000 repositories.

What the attacker needed

Attacker gains write access to the action repo; victim references a mutable version tag; victim's workflow runs the compromised action

The fix

The text does not state that the vulnerability was fixed; it recommends pinning actions to immutable commit SHAs, enforcing least privilege, vetting third-party actions, and monitoring logs.

How it was found

  1. Compromise a GitHub Personal Access Token used by the bot account for the action.
  2. Use the token to push changes and modify multiple version tags to point to a single malicious commit.
  3. When dependent repositories run the action, it executes a Python script hosted on a GitHub gist.
  4. The script dumps sensitive CI/CD secrets such as AWS access keys and GitHub tokens into the workflow logs.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

GitHub Actions are reusable scripts that run automatically when code is pushed. This action was referenced by a version tag like @v4, which can be moved to point at different code. Attackers moved the tag to malicious code, so every project using that tag ran the attacker's script, which printed secret keys into logs where attackers could read them.

Similar reports

Same bug class and techniques, clearest first.