PT-2026-79424 · Infracost · Infracost

CVE-2026-71493

·

Published

2026-08-21

·

Updated

2026-09-10

CVSS v4.0

5.9

Medium

VectorAV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Infracost versions prior to 0.10.45
Description Template functions readFile(), pathExists(), isDir(), and matchPaths() in internal/config/template/parser.go use a lexical filepath.Rel check and a leaf-only os.Lstat check that fail to resolve intermediate directory symlinks. This allows a repository to contain a path where a directory points outside the checkout, causing os.ReadFile and related operations to follow the symlink and read files accessible to the runner. The read content is then rendered into the generated configuration and can be exposed via the Infracost dashboard or pull request comments, which is particularly critical in workflows that provide repository secrets.
Recommendations Update to version 0.10.45.

Exploit

Fix

Link Following

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-71493
GHSA-MMG6-4QMV-6PC8
GO-2026-6439

Affected Products

Infracost