字号·· | 护眼
漏洞档案 · 高危

tj-actions changed-files 供应链投毒/凭据泄露(CVE-2025-30066)

CVE-2025-30066 别名:GHSA-MRRH-FWG8-R2C3
CVSS 8.6 / 3.1 EPSS 8.1% CISA KEV 在野利用 公开 PoC · 2
综合风险71/ 100
CVSS8.6高危
EPSS8.1%30 天利用概率
机构收录时间2025-03-14更新 2026-11-29

研判简报

概述

tj-actions/changed-files 是一个被广泛使用的 GitHub Action。该 Action 在 46 之前的版本中被植入恶意代码,可让远程攻击者通过读取 GitHub Actions 工作流日志发现密钥。泄露内容可能包括有效的 AWS 访问密钥、GitHub PAT、npm token 与 RSA 私钥。官方记录指出,v1 至 v45.0.7 的标签在 2025-03-14 与 2025-03-15 被威胁行为者修改。任何在 CI 中引用该 Action 且持有敏感凭据的仓库都应关注。

严重性

CVSS 8.6(3.1),综合风险分 83.82/100,评级 high;EPSS 30 天利用概率 72.1%(百分位 99.4%,日期 2026-11-25)。攻击面为使用该 Action 的 GitHub Actions 工作流及其可访问的密钥。

利用状态

CISA KEV 已收录(2025-03-18),KEV 处置期限 2025-04-08;CISA SSVC:automatable=yes、exploitation=active、technical_impact=partial。Exploit-DB/公开 PoC 记录 2 条。以上状态核查日期为 2026-11-25。勒索软件关联状态材料未给出;Nuclei 状态材料未给出。

受影响产品

tj-actions:changed-files >=1 <46。官方记录称 v1 至 v45.0.7 标签于 2025-03-14 与 2025-03-15 被修改;结构化提取的修复版本为 changed-files 46。部署形态为 GitHub Actions 工作流依赖(引用标签或版本)。别名 GHSA-MRRH-FWG8-R2C3。

修复版本

官方修复版本为 changed-files 46。其余补丁细节材料未给出。

缓解措施

按 CISA KEV 要求应用厂商指引的缓解措施,遵循 BOD 22-01 云服务指引,或在无缓解措施时停止使用该产品(期限 2025-04-08)。参考材料中的 GitHub 安全加固文档建议:敏感值不应以明文存放于工作流文件,应使用 secrets;GitHub 会对运行日志中出现的已配置密钥做脱敏,但该机制依赖精确匹配与常见编码,不能视为对已泄露密钥的补救。材料未给出更多具体替代动作。

响应步骤

  1. 盘点所有工作流中对 tj-actions/changed-files 的引用,确认是否落在 >=1 <46 区间及是否使用被篡改标签。
  2. 升级至 changed-files 46,或按 CISA/厂商指引停用该 Action。
  3. 视为相关密钥已可能泄露,轮换 AWS 访问密钥、GitHub PAT、npm token 与 RSA 私钥等。
  4. 审查 2025-03-14 至 2025-03-15 前后的 Actions 运行日志与仓库改动,排查异常。
  5. 参照 KEV 期限 2025-04-08 完成处置并记录。

参考来源

  1. https://github.com/github/docs/blob/962a1c8dccb8c0f66548b324e5b921b5e4fbc3d6/content/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions.md?plain=1#L191-L193advisory,euvd
  2. https://github.com/tj-actions/changed-files/issues/2463advisory,euvd
  3. https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromisedkev,advisory,euvd
  4. https://semgrep.dev/blog/2025/popular-github-action-tj-actionschanged-files-is-compromised/advisory,euvd
  5. https://news.ycombinator.com/item?id=43368870advisory,euvd
  6. https://web.archive.org/web/20250315060250/https://github.com/tj-actions/changed-files/issues/2463advisory,euvd
  7. https://news.ycombinator.com/item?id=43367987advisory,euvd
  8. https://github.com/rackerlabs/genestack/pull/903advisory,euvd
  9. https://github.com/chains-project/maven-lockfile/pull/1111advisory,euvd
  10. https://sysdig.com/blog/detecting-and-mitigating-the-tj-actions-changed-files-supply-chain-attack-cve-2025-30066/advisory,euvd
  11. https://github.com/espressif/arduino-esp32/issues/11127advisory,euvd
  12. https://github.com/modal-labs/modal-examples/issues/1100advisory,euvd
  13. https://github.com/tj-actions/changed-files/issues/2464advisory,euvd
  14. https://github.com/tj-actions/changed-files/blob/45fb12d7a8bedb4da42342e52fe054c6c2c3fd73/README.md?plain=1#L20-L28advisory,euvd
  15. https://www.wiz.io/blog/github-action-tj-actions-changed-files-supply-chain-attack-cve-2025-30066kev,advisory,euvd
  16. https://www.stream.security/post/github-action-supply-chain-attack-exposes-secrets-what-you-need-to-know-and-how-to-respondadvisory,euvd