Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
infracost infracost
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Infracost 为工程师、AI 编码代理以及 CI/CD 流水线提供云成本智能分析。在版本 0.10.45 之前,位于 中的 、 、 和 等模板函数仅使用了基于词法层级的 检查以及仅针对叶子节点的 检查,未能正确解析中间目录的符号链接(symlink)。 攻击者可以在代码仓库中构造类似 的路径,其中 是一个指向检出目录(checkout)之外的符号链接。这将导致 及相关操作跟随符号链接,读取具有运行器访问权限的文件。这些读取到的内容会被渲染到生成的配置中,并可能通过 Infracost 仪表盘或拉取请求(Pul

CVSS 5.9 · Medium EPSS 0.43% · P35

Affected Version Matrix 1

VendorProduct Version RangeStatus
infracost infracost < 0.10.45 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-71493

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Infracost: Arbitrary file read via config-template readFile symlink traversal
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
infracost infracost < 0.10.45 -

II. Public POCs for CVE-2026-71493

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-71493

登录查看更多情报信息。

Patches & Fixes for CVE-2026-71493 (2)

Vendor Advisories for CVE-2026-71493 (1)

Vendor Pages for CVE-2026-71493 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-71493

No comments yet


Leave a comment