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

- Severity: Medium 5.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-08-21T17:52:29.001Z
- Modified: 2026-10-14T19:10:00.297Z
- Also known as: GHSA-mmg6-4qmv-6pc8, GO-2026-6439
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:4.0 5.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

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

## Sources

- CVE List: [CVE-2026-71493](https://www.cve.org/CVERecord?id=CVE-2026-71493), CVE Terms of Use, modified 2026-08-26
- GitHub Advisory Database: [GHSA-mmg6-4qmv-6pc8](https://github.com/advisories/GHSA-mmg6-4qmv-6pc8), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-6439](https://pkg.go.dev/vuln/GO-2026-6439), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-71493](https://nvd.nist.gov/vuln/detail/CVE-2026-71493), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2026-71493 · Whole record: https://cve.day/CVE-2026-71493.json · Rebuilt by cve.day 2026-11-25T22:59:34.807Z
