CVE-2026-71493
Infracost: Arbitrary file read via config-template readFile symlink traversal
Also known as GHSA-mmg6-4qmv-6pc8, GO-2026-6439
Mitigation
- Upgrade github.com/infracost/infracost to 0.10.45 or later.
Who should check
- Projects that depend on Go package github.com/infracost/infracost (< 0.10.45)
- Anyone running infracost < 0.10.45
Vulnerability facts
- Affected
- github.com/infracost/infracost < 0.10.45
- Fixed in
- 0.10.45
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Active
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.54% chance of exploitation in 30 days (percentile 39, 2026-11-26)
- CWE
- CWE-22, CWE-59
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/infracost/infracost | < 0.10.45 | 0.10.45 | osv |
| infracost | < 0.10.45 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-71493. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-71493.md Affected: github.com/infracost/infracost < 0.10.45 Fixed in: 0.10.45 Steps: 1. Search this machine and project for github.com/infracost/infracost (Go), infracost: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-71493 being exploited?
There is no confirmed exploitation: CVE-2026-71493 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.54% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-71493?
Medium: CVSS 5.9 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-71493?
github.com/infracost/infracost < 0.10.45.
Is there a fix for CVE-2026-71493?
Yes. Fixed in 0.10.45. Upgrade github.com/infracost/infracost to 0.10.45 or later.
How do I check if I'm affected by CVE-2026-71493?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.