# CVE-2026-71493: Infracost: Arbitrary file read via config-template readFile symlink traversal

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-21 · Modified: 2026-08-26
- Aliases: GHSA-mmg6-4qmv-6pc8, GO-2026-6439
- Record: https://cvemate.com/vulnerability/CVE-2026-71493 · JSON: https://cvemate.com/vulnerability/CVE-2026-71493/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v4.0, CVE.org) 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
- EPSS: 0.426%, percentile 38.775%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/infracost infracost (Go): \< 0.10.45
- infracost infracost: \< 0.10.45

## References

- <https://github.com/infracost/infracost/security/advisories/GHSA-mmg6-4qmv-6pc8>
- <https://github.com/infracost/infracost/pull/3586>
- <https://github.com/infracost/infracost/commit/4d39331afc0e27752d16d9d91c34583e5e8487fb>
- <https://github.com/infracost/infracost/releases/tag/v0.10.45>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-71493>
- <https://github.com/infracost/infracost>

---

Data as of 2026-12-05T14:01:42.930Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
