5.9

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

Deferred
AliasesGHSA-mmg6-4qmv-6pc8GO-2026-6439
Published 21-08-2026Last modified 26-08-2026

Vulnerability summary

CVE-2026-71493 is a medium (CVSS 5.9) vulnerability in infracost. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 38.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
5.9/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.43%
0%100%
Low · -0.12 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 3 · Related 3

Timeline

  1. 21-08-2026
    PublishedVulnerability first disclosed.
  2. 26-08-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.43%

Chance of exploitation in the next 30 days

Percentile

39%

Versus all other CVEs

30-day change

Decrease -0.12 pp

From 0.54% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Github.com/infracost1 product
  • infracost< 0.10.45
Infracost1 product

2 vendors · 2 products

References

6 links