Advisories

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

Go back
Severity
medium
Date
Affecting
  • infracost < 0.10.52

CWE
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVSS
5.3
CVSS V4 Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Credit
Zachariah Mithani (AploSec)
Description
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.

Ready to get Started?

Explore VulnCheck, a next-generation Cyber Threat Intelligence platform, which provides exploit and vulnerability intelligence to help you prioritize and remediate vulnerabilities that matter.
  • Vulnerability Prioritization
    Prioritize vulnerabilities that matter based on the threat landscape and defer vulnerabilities that don't.
  • Early Warning System
    Real-time alerting of changes in the vulnerability landscape so that you can take action before the attacks start.