THREATOPS
THREAT OPSThreat News › [GHSA] GHSA-mmg6-4qmv-6pc8 (medium) — Infracost: Arbitrary file read via config-template readFile symlink traversal

[GHSA] GHSA-mmg6-4qmv-6pc8 (medium) — Infracost: Arbitrary file read via config-template readFile symlink traversal

medgithub_advisoriesPublished 2026-09-08

GHSA-mmg6-4qmv-6pc8 Severity: medium CVE: CVE-2026-71493

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

### Impact

Path traversal via link following in the Infracost config-template parser. The `readFile`, `pathExists`, `isDir`, and `matchPaths` template functions confined repo-supplied paths with a lexical `filepath.Rel` check plus a leaf-only `os.Lstat`:

``` {{

Indicators of compromise

Original source: https://github.com/advisories/GHSA-mmg6-4qmv-6pc8