Skip to main content

Infracost CVE-2026-71494

| EUVDEUVD-2026-64019 MEDIUM
Insufficiently Protected Credentials (CWE-522)
2026-08-21 GitHub_M GHSA-6x6c-w9w9-hv4h
5.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker submits PR with malicious cloud block hostname
  2. Delivery
    CI workflow (pull_request_target) triggers Infracost scan
  3. Exploit
    Infracost parses attacker-controlled hostname from Terraform
  4. Execution
    Infracost attaches configured TFC token to outbound request
  5. Persist
    Request sent to attacker-controlled host
  6. Impact
    TFC token fully exfiltrated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V6 - Authentication Credential protection in transit/storage
Exploitation Conditions

Three concurrent conditions must be met: (1) Infracost must be configured with a Terraform Cloud or Enterprise API token in the CI environment; (2) the CI workflow must expose that token to a scan of code the attacker can influence - the vendor explicitly identifies pull_request_target workflows and same-repository pull requests as the vulnerable patterns, and confirms that standard fork pull_request workflows without secrets are not affected; (3) the attacker must be able to place a Terraform cloud or backend block with a controlled hostname attribute in the code being scanned. The attack is limited to scenarios where all three conditions coincide. Organizations that do not configure TFC tokens in Infracost CI, that run Infracost only on trusted internal branches, or that use standard pull_request triggers without secret inheritance are not exposed.

Impact

The CVSS 4.0 score of 5.9 accurately reflects a medium-severity credential disclosure issue. The AT:P metric captures the key prerequisite: exploitation is conditional on a specific CI workflow pattern (pull_request_target or equivalent secrets-exposed scan) combined with attacker-controlled Terraform reaching Infracost. The VC:H metric is well-justified - a disclosed Terraform Cloud token can grant the attacker full access to the victim's TFC organization, enabling infrastructure inspection or modification far beyond the initial disclosure. EPSS data is absent from the provided intelligence, and the CVE is not in CISA KEV, so no active exploitation is confirmed. The missing EPSS signal means the real-world exploitation rate is unknown rather than confirmed low; teams should not interpret KEV absence as a signal that exploitation is implausible, given how straightforward the attack path is once prerequisites are met. The primary risk limiter is the prerequisite: organizations that run Infracost only against trusted internal code, or that do not configure TFC tokens in CI, are not exposed. Those running open-source repositories with Infracost cost checks on external contributor PRs via pull_request_target are at meaningful risk and should treat this as urgent.

Exploit ScenarioDerived

An attacker submits a pull request to a public repository where a GitHub Actions workflow using pull_request_target runs Infracost with a Terraform Cloud token. The attacker includes a Terraform cloud block with hostname set to an attacker-controlled server. When the CI workflow triggers, Infracost reads the malicious hostname from the Terraform source and sends an authenticated request carrying the TFC token to the attacker's server, fully disclosing the credential. No public exploit code has been identified at time of analysis, but the attack requires only a crafted Terraform file and knowledge of the target CI configuration.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 21, 2026

Token exfiltration in Infracost prior to 0.10.45 allows an attacker who controls scanned Terraform source to redirect a configured Terraform Cloud or registry credential to an arbitrary attacker-controlled host. The vulnerable code path in internal/hcl/remote_variables_loader.go derived the destination hostname from untrusted Terraform cloud/backend block attributes without validating it against the operator-configured trusted host. CI pipelines using pull_request_target or same-repository pull request workflows that expose a TFC token to Infracost scans are affected; standard fork pull_request workflows without secrets are explicitly not vulnerable. No public exploit code has been identified at time of analysis, and this CVE is not listed in CISA KEV.

RemediationAI

Upgrade Infracost to version 0.10.45 or later; this is the vendor-confirmed fix and the only complete remediation. The release is available at https://github.com/infracost/infracost/releases/tag/v0.10.45 and the underlying patch is at https://github.com/infracost/infracost/commit/3d24c757f5e4e60c7259f1b89ad7ceaabcfca86f. If an immediate upgrade is not possible, the most effective compensating control is to prevent untrusted Terraform code from reaching Infracost CI scans that carry a TFC token - specifically, audit all GitHub Actions workflows for pull_request_target usage and ensure that jobs running Infracost with token secrets do not execute on code from forks or unreviewed branches. A secondary control is to rotate any TFC tokens used in CI that may have been exposed, and scope replacement tokens to the minimum required permissions. Note that restricting workflow triggers adds manual review overhead and may slow PR feedback cycles.

Affected VersionsENISA

infracost < 0.10.45

Affected Packages

go github.com/infracost/infracost fix: 0.10.45
euvd infracost fix: 0.10.45

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Infracost (cpe:2.3:a:infracost:infracost:*:*:*:*:*:*:*:*) is a Go-based cloud cost intelligence tool that parses Terraform HCL files and, when configured with a Terraform Cloud or Enterprise token, makes authenticated API calls to retrieve remote variable values and plan data. The vulnerable code in internal/hcl/remote_variables_loader.go read the hostname attribute from Terraform cloud and backend blocks - values that come directly from the untrusted Terraform source being scanned - and used that value as the API destination without checking it against the operator-configured trusted host. This maps to CWE-522 (Insufficiently Protected Credentials): the credential was attached to a request whose destination was derived from attacker-controllable input. The fix in PR #3590 introduces a hostConfigured boolean flag, an explicit hostsEqual() comparison function, and two distinct refusal paths: if the user pinned a trusted host and the scanned Terraform requests a different one, the loader skips remote variable loading with a warning; if no trusted host was pinned, the loader returns a hard error rather than sending the token to the unverified destination.

Know when Infracost gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Network vector but AC:H because exploitation requires the specific pull_request_target CI pattern with secrets; PR:N as no attacker account privileges are needed; UI:R because CI scan must be triggered; C:H for full token disclosure; no integrity or availability impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Aug 21, 2026 - 18:01 EUVD

DescriptionCVE.org

Infracost provides cloud cost intelligence for engineers, AI coding agents, and CI/CD. Prior to 0.10.45, internal/hcl/remote_variables_loader.go and related Terraform Cloud, remote-plan, and Terragrunt registry request paths can attach a configured Terraform Cloud or registry token to a destination hostname derived from untrusted Terraform input without confirming that it is the configured trusted host. When a CI run provides a token while scanning attacker-controlled Terraform, including pull_request_target or a same-repository pull request, an attacker can direct the request to an attacker-controlled host and disclose the token. Standard fork pull_request workflows without secrets are not exposed. This issue is fixed in version 0.10.45.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
specialized IaC cost estimation tool with niche DevOps/FinOps adoption
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected
openSUSE Leap 15.6 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy