{"id":"CVE-2026-61706","aliases":[],"kind":"cve","tier":"hot","status":"published","title":"Infracost GitHub Action: Script injection via pull request title in infracost/actions/diff","description":"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.","ai_summary":null,"severity":"high","cvss":{"score":7.4,"version":"4.0","vector":"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","source":"CNA"},"scores":[{"score":7.4,"version":"4.0","vector":"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","source":"cna"},{"score":7.4,"version":"4.0","vector":"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","source":"cna"}],"cwe":["CWE-94"],"remote":true,"remote_unauth":true,"epss":{"score":0.0083,"percentile":0.58878,"date":"2026-12-05"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"vendor":"infracost","product":"actions","versions":">= 4.0.0, < 4.2.0","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade actions to 4.2.0 or later.","technologies":[],"references":[{"url":"https://github.com/infracost/actions/security/advisories/GHSA-whm3-8375-8m8j","kind":"vendor"},{"url":"https://github.com/infracost/actions/pull/262","kind":"patch"},{"url":"https://github.com/infracost/actions/commit/fb736a8f219195d6efdca58682069b16fe1bc280","kind":"patch"},{"url":"https://github.com/infracost/actions/releases/tag/v4.2.0","kind":"other"}],"workarounds":null,"vendors":["infracost"],"products":["actions"],"cpes":[],"published_at":"2026-12-03T22:54:45.799Z","modified_at":"2026-12-04T14:18:12.503Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61706"},{"source":"FIRST EPSS","text":"EPSS scores by FIRST","url":"https://www.first.org/epss/"}],"links":{"html":"https://flawdb.com/CVE-2026-61706","markdown":"https://flawdb.com/CVE-2026-61706.md","json":"https://flawdb.com/api/v1/entries/CVE-2026-61706"}}