CVE-2026-61706
Received Received - Intake

GitHub Actions Script Injection in Infracost

Vulnerability report for CVE-2026-61706, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-04

Last updated on: 2026-12-04

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-04
Last Modified
2026-12-04
Generated
2026-12-04
AI Q&A
2026-12-04
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
infracost infracost From 4.0.0 (inc) to 4.2.0 (exc)
infracost infracost 4.2.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Infracost's GitHub Actions workflow had a script injection flaw in versions 4.0.0 to 4.1.x. The pull request title was directly interpolated into a bash run block without sanitization. Attackers could craft PR titles with commands like $(...), backticks, or ; to execute arbitrary code on the Actions runner.

Detection Guidance

Check if your Infracost GitHub Actions workflow uses versions between 4.0.0 and 4.2.0. Inspect workflow files for unsafe interpolation of PR titles in bash run blocks. Look for ${{ github.event.pull_request.title }} in scripts.

Impact Analysis

If exploited, attackers can run arbitrary commands on the GitHub Actions runner. Impact depends on workflow configuration: limited to read-only tokens for fork PRs under pull_request, but full secret access and repository modification possible with pull_request_target or same-repo PRs.

Mitigation Strategies

Upgrade Infracost to version 4.2.0 or later. Review and update GitHub Actions workflows to avoid direct interpolation of user-controlled inputs like PR titles into bash commands.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-61706. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...