CVE-2026-61706
HIGH 7.4CVSS 4.0Infracost GitHub Action: Script injection via pull request title in infracost/actions/diff
Infracost helps see cloud cost estimates for Terraform in pull requests. From version 4.0.0 to before version 4.2.0, there is a GitHub Actions script injection vulnerability in the infracost/actions/diff action. The "Derive context" step interpolated the pull request title straight into a bash run: block. Actions expands ${{ ... }} into the script before bash runs, so a PR title containing $(...), backticks, or ; executes as code on the runner. Anyone who can open a pull request can set the title. Successful exploitation runs arbitrary commands on the Actions runner with the privileges of the workflow. Impact depends on what the workflow exposes: under on: pull_request (the only configuration in Infracost's documentation) fork pull requests run without secrets and with a read-only token, so exposure is limited. If the action is used with pull_request_target, or triggered by a same-repository pull request, the injected code gains the repository's secrets and a writable GITHUB_TOKEN, enabling secret theft and repository modification. Exploiting an untrusted fork pull request also typically requires a maintainer to approve the workflow run. This issue has been patched in version 4.2.0.
- Published
- 4 Dec 2026
- Last modified
- 4 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-94
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.4 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | GitHub_M | CVSS 4.0 | HIGH 7.4 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: total |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | infracost | actions | = >= 4.0.0, < 4.2.0 |
References
- https://github.com/infracost/actions/commit/fb736a8f219195d6efdca58682069b16fe1bc280 · x_refsource_MISC
- https://github.com/infracost/actions/pull/262 · x_refsource_MISC
- https://github.com/infracost/actions/releases/tag/v4.2.0 · x_refsource_MISC
- https://github.com/infracost/actions/security/advisories/GHSA-whm3-8375-8m8j · x_refsource_CONFIRM
History
- 4 Dec 2026 15:09 UTC · NVD: updated (other details)
- 4 Dec 2026 14:09 UTC · CVE List: updated (other details)
- 4 Dec 2026 01:56 UTC · NVD: first stored (published 4 Dec 2026)
- 3 Dec 2026 23:56 UTC · CVE List: first stored (published 3 Dec 2026)