Live threats

All CVEs / infracost

CVE-2026-71493infracost

Medium 5.9 No auth needed

Priority
50
CVSS 4.0
5.9
EPSS
—
Auth required
No
Published
Aug 21, 2026
Updated
Oct 14, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22, CWE-59
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for infracost.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/infracost/infracost < 0.10.45 0.10.45 go get github.com/infracost/infracost@v0.10.45
Go github.com/infracost/infracost < 0.10.45 0.10.45 go get github.com/infracost/infracost@v0.10.45

Per OSV / GitHub Advisories (GHSA-mmg6-4qmv-6pc8, GO-2026-6439). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.