Infracost: Terraform Cloud and registry token disclosure via unvalidated hostname
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-522.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| infracost | infracost | before 0.10.45 | 0.10.45 | Patch available | CNA |
| — | github.com/infracost/infracost (Go) | before 0.10.45 | 0.10.45 | Patch available | GHSA-6x6c-w9w9-hv4h |
- infracost Vendorinfracost Affected before 0.10.45 Fixed in 0.10.45 Patch available CNA
- github.com/infracost/infracost (Go) Vendor— Affected before 0.10.45 Fixed in 0.10.45 Patch available GHSA-6x6c-w9w9-hv4h
Remediation
- Fix · CNA infracost (infracost) Fixed in 0.10.45
- Fix · GHSA-6x6c-w9w9-hv4h github.com/infracost/infracost (Go) Fixed in 0.10.45 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-71494
- 2026-10-03 Alias added: GHSA-6x6c-w9w9-hv4h
References
Other 5
- https://github.com/infracost/infracost/security/advisories/GHSA-6x6c-w9w9-hv4h
- https://github.com/infracost/infracost/pull/3590
- https://github.com/infracost/infracost/commit/3d24c757f5e4e60c7259f1b89ad7ceaabcfca86f
- https://github.com/infracost/infracost/releases/tag/v0.10.45
- https://github.com/infracost/infracost
More infracost vulnerabilities
- TI-2026-50101 Infracost: Arbitrary file read via config-template readFile symlink traversal CVSS 4.0MEDIUM 5.9
Sources
- CVE-2026-71494 · CVE Program
- CVE-2026-71494 · NVD
- FIRST EPSS
- GHSA-6x6c-w9w9-hv4h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences