CVE-2026-71493
Infracost: Arbitrary file read via config-template readFile symlink traversal
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.
INFO
Published Date :
Aug. 21, 2026, 6:16 p.m.
Last Modified :
Oct. 14, 2026, 7:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 4.0 | MEDIUM | [email protected] |
Solution
- Update Infracost to version 0.10.45.
- Review configuration for symlink usage.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-71493.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-71493 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-71493
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-71493 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-71493 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 14, 2026
Action Type Old Value New Value Added Translation Title: infracost, Description: Infracost proporciona inteligencia de costos en la nube para ingenieros, agentes de codificación de IA y CI/CD. Antes de la versión 0.10.45, las funciones de plantilla readFile, pathExists, isDir y matchPaths en internal/config/template/parser.go utilizan una verificación léxica filepath.Rel y una verificación os.Lstat solo de hoja que no resuelven un enlace simbólico de directorio intermedio. Un repositorio puede contener una ruta como evil/file donde evil apunta fuera del checkout, haciendo que os.ReadFile y operaciones relacionadas sigan el enlace simbólico y lean archivos accesibles para el ejecutor. El contenido resultante se renderiza en la configuración generada y puede mostrarse a través del panel de Infracost o un comentario de solicitud de extracción, con mayor impacto en flujos de trabajo que proporcionan secretos de repositorio. Este problema se corrige en la versión 0.10.45. -
CVE Modified by [email protected]
Aug. 26, 2026
Action Type Old Value New Value Added Reference https://github.com/infracost/infracost/commit/4d39331afc0e27752d16d9d91c34583e5e8487fb Added Reference https://github.com/infracost/infracost/pull/3586 Added Reference https://github.com/infracost/infracost/releases/tag/v0.10.45 Added Reference https://github.com/infracost/infracost/security/advisories/GHSA-mmg6-4qmv-6pc8 Removed Reference https://github.com/infracost/infracost/commit/4d39331afc0e27752d16d9d91c34583e5e8487fb Removed Reference https://github.com/infracost/infracost/pull/3586 Removed Reference https://github.com/infracost/infracost/releases/tag/v0.10.45 Removed Reference https://github.com/infracost/infracost/security/advisories/GHSA-mmg6-4qmv-6pc8 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 26, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-71493', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-08-26T17:33:05.338155Z'} -
New CVE Received by [email protected]
Aug. 21, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'infracost', 'product': 'infracost', 'versions': [{'status': 'affected', 'version': '< 0.10.45'}]}] Added 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. Added CVSS V4.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 Added CWE CWE-22 Added CWE CWE-59 Added Reference https://github.com/infracost/infracost/commit/4d39331afc0e27752d16d9d91c34583e5e8487fb Added Reference https://github.com/infracost/infracost/pull/3586 Added Reference https://github.com/infracost/infracost/releases/tag/v0.10.45 Added Reference https://github.com/infracost/infracost/security/advisories/GHSA-mmg6-4qmv-6pc8