Skip to content
FlawDB
Sign in

CVE-2026-61706

HIGH 7.4

Infracost GitHub Action: Script injection via pull request title in infracost/actions/diff

AI summary AI generated

An attacker who can open a pull request can inject shell commands through the PR title into the Infracost GitHub Action diff workflow, executing code on the Actions runner.

Mitigation

  • Upgrade actions to 4.2.0 or later.

Who should check

  • Anyone running infracost actions >= 4.0.0, < 4.2.0

Vulnerability facts

Affected
infracost actions >= 4.0.0, < 4.2.0
Fixed in
infracost actions 4.2.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.4 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Active
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
CWE
CWE-94
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
infracost actions>= 4.0.0, < 4.2.0—cvelist

Versions mentioned in the description AI generated

Extracted by AI; each line quotes the description word for word. Source data above takes precedence.

  • Affected: infracost/actions/diff From version 4.0.0 to before version 4.2.0 From version 4.0.0 to before version 4.2.0
  • Fixed: infracost/actions/diff 4.2.0 This issue has been patched in version 4.2.0.

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-61706. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-61706.md
Affected: infracost actions >= 4.0.0, < 4.2.0
Fixed in: infracost actions 4.2.0

Steps:
1. Search this machine and project for infracost actions: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-61706 being exploited?

There is no confirmed exploitation: CVE-2026-61706 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-61706?

High: CVSS 7.4 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-61706?

infracost actions >= 4.0.0, < 4.2.0.

Is there a fix for CVE-2026-61706?

Yes. Fixed in infracost actions 4.2.0. Upgrade actions to 4.2.0 or later.

How do I check if I'm affected by CVE-2026-61706?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 5.3CVE-2026-144570

Infracost before 0.10.52 App-Mode Path Traversal via Var Files and Modules

infracost
Sponsors