Read the docs
TI-2026-50101 Aliases CVE-2026-71493GHSA-mmg6-4qmv-6pc8

Infracost: Arbitrary file read via config-template readFile symlink traversal

Priority LOW 29CWE-22Published · Updated

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-22 and the CVSS impact.

Summary

Infracost provides cloud cost intelligence for engineers, AI coding agents, and CI/CD. Prior to 0.10.45, the readFile, pathExists, isDir, and matchPaths template functions in internal/config/template/parser.go use a lexical filepath.Rel check and a leaf-only os.Lstat check that do not resolve an intermediate directory symlink. A repository can contain a path such as evil/file where evil points outside the checkout, causing os.ReadFile and related operations to follow the symlink and read runner-accessible files. The resulting content is rendered into generated configuration and can be surfaced through the Infracost dashboard or pull request comment, with greater impact in workflows that provide repository secrets. This issue is fixed in version 0.10.45.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00544 45th percentileScored 2026-11-07
Fix Fixed infracost (infracost): 0.10.45github.com/infracost/infracost (Go): 0.10.45

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
infracostinfracostbefore 0.10.450.10.45Patch availableCNA
—github.com/infracost/infracost (Go)before 0.10.450.10.45Patch availableGHSA-mmg6-4qmv-6pc8
  • 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-mmg6-4qmv-6pc8

Remediation

  • Fix · CNA infracost (infracost) Fixed in 0.10.45
  • Fix · GHSA-mmg6-4qmv-6pc8 github.com/infracost/infracost (Go) Fixed in 0.10.45 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-71493
  2. 2026-10-03 Alias added: GHSA-mmg6-4qmv-6pc8

References

  • TI-2026-50102 Infracost: Terraform Cloud and registry token disclosure via unvalidated hostname CVSS 4.0MEDIUM 5.9

Sources