Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › DevOps / CI

CVE-2026-61706 — infracost actions

High · CVSS 7.4 First seen December 04, 2026
DevOps / CICloud & containersVulnerabilitiesLaw enforcement

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.4 CVSS 4.0 base score from the CNA (github.com)

An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Special conditions
only in some setups or conditions
Login needed
no
User action needed
yes, a user must deliberately do something
Impact
high on confidentiality and integrity, none on availability
Impact on other systems
none

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

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Affected and fixed versions

ProductAffected versionsFixed in
infracost actions>= 4.0.0, < 4.2.0—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Details from NVD (public domain).

Affected

  • infracost actions

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-61706?

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 ${{ ... Weakness type: Improper Control of Generation of Code ('Code Injection') (CWE-94).

How severe is CVE-2026-61706?

CVE-2026-61706 has a CVSS 4.0 base score of 7.4 (high), from the CNA (github.com). An attacker without an account can exploit this over the network if a user is tricked into an action, but only under specific conditions.

Is CVE-2026-61706 being exploited?

Not as far as is known: CVE-2026-61706 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026.

Which versions are affected by CVE-2026-61706?

infracost actions >= 4.0.0, < 4.2.0.

How do I fix CVE-2026-61706?

Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.

Timeline & sources

References

Related vulnerabilities & news