# CVE-2026-144570: Infracost before 0.10.52 App-Mode Path Traversal via Var Files and Modules

Source: https://aplosec.si/cve/CVE-2026-144570/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-144570

Medium 5.3 · Reported · Fixed in 0.10.52 · CWE-22 · Go

# Infracost before 0.10.52 App-Mode Path Traversal via Var Files and Modules

CVE-2026-144570 · published 2026-12-04

In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). A fixed release is listed.

## Summary

CVE-2026-144570 affects Infracost (Go) < 0.10.52: App-Mode Path Traversal via Var Files and Modules (CWE-22). Fixed in 0.10.52. CVSS 4.0 base score 5.3 (Medium), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).

Infracost before 0.10.52 contains a path traversal vulnerability in app mode that allows pull request authors to load files outside the repository root through terraform_var_files, symlinked .tfvars files, and local module sources. Attackers can point these paths at HCL- or JSON-formatted files on the runner, such as credential files or other checkouts, to leak their values into cost output and pull request comments.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade Infracost to 0.10.52 or later. Releases in the affected range (< 0.10.52) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-12-04 CVE published

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/infracost-before-0.10.52-app-mode-path-traversal-via-var-files-and-modules](https://www.vulncheck.com/advisories/infracost-before-0.10.52-app-mode-path-traversal-via-var-files-and-modules)

- [Fix pull requesthttps://github.com/infracost/infracost/pull/3654](https://github.com/infracost/infracost/pull/3654)

- [Fix commithttps://github.com/infracost/infracost/commit/4af5d249015b68175543fd0b740034545be46d69](https://github.com/infracost/infracost/commit/4af5d249015b68175543fd0b740034545be46d69)

- [Vulnerable codehttps://github.com/infracost/infracost/blob/v0.10.51/internal/hcl/parser.go#L740-L763](https://github.com/infracost/infracost/blob/v0.10.51/internal/hcl/parser.go#L740-L763)

- [Vulnerable codehttps://github.com/infracost/infracost/blob/v0.10.51/internal/hcl/modules/loader.go#L319-L363](https://github.com/infracost/infracost/blob/v0.10.51/internal/hcl/modules/loader.go#L319-L363)

- [Releasehttps://github.com/infracost/infracost/releases/tag/v0.10.52](https://github.com/infracost/infracost/releases/tag/v0.10.52)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-144570](https://www.cve.org/CVERecord?id=CVE-2026-144570)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-144570](https://nvd.nist.gov/vuln/detail/CVE-2026-144570)

**Severity:** Medium 5.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-144570)

**Package:** Infracost

**Ecosystem:** Go

**Affected:** < 0.10.52

**Fixed:** 0.10.52

**Weakness:** CWE-22

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
