CyberRota Analysis
AI-GeneratedTerragrunt versions prior to 1.0.4 are vulnerable to a path traversal issue that allows a malicious external module to specify absolute or traversal paths in the module manifest, potentially leading to the deletion of files outside the intended module cache. This vulnerability can disrupt CI/CD pipelines by removing critical local source code or configuration files. Organizations utilizing Terragrunt for Infrastructure as Code should prioritize upgrading to version 1.0.4 to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu or Terraform to scale. Prior to 1.0.4, Terragrunt trusts paths decoded from a downloaded module's .terragrunt-module-manifest during fileManifest.Clean() in internal/util/file.go. A malicious or compromised external module can place absolute or traversal paths in the manifest, causing cleanup to delete files outside the module cache that are accessible to the Terragrunt process before OpenTofu or Terraform executes. This deletion-only primitive can remove local source code or configuration and disrupt CI/CD pipelines. This issue is fixed in version 1.0.4.