Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker submits PR with malicious cloud block hostname
-
DeliveryCI workflow (pull_request_target) triggers Infracost scan
-
ExploitInfracost parses attacker-controlled hostname from Terraform
-
ExecutionInfracost attaches configured TFC token to outbound request
-
PersistRequest sent to attacker-controlled host
-
ImpactTFC 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Same weakness CWE-522 – Insufficiently Protected Credentials
View allSame technique Information Disclosure
View allVendor 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 |
EUVD-2026-64019
GHSA-6x6c-w9w9-hv4h
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB