Terragrunt: Arbitrary File Deletion via Malicious Module Manifest
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gruntwork-io | terragrunt | before 1.0.4 | 1.0.4 | Patch available | CNA |
| — | github.com/gruntwork-io/terragrunt (Go) | before 1.0.4 | 1.0.4 | Patch available | GHSA-8394-6f8r-whxg |
- terragrunt Vendorgruntwork-io Affected before 1.0.4 Fixed in 1.0.4 Patch available CNA
- github.com/gruntwork-io/terragrunt (Go) Vendor— Affected before 1.0.4 Fixed in 1.0.4 Patch available GHSA-8394-6f8r-whxg
Remediation
- Fix · CNA terragrunt (gruntwork-io) Fixed in 1.0.4
- Fix · GHSA-8394-6f8r-whxg github.com/gruntwork-io/terragrunt (Go) Fixed in 1.0.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45099
- 2026-10-03 Alias added: GHSA-8394-6f8r-whxg
References
Other 5
- https://github.com/gruntwork-io/terragrunt/security/advisories/GHSA-8394-6f8r-whxg
- https://github.com/gruntwork-io/terragrunt/pull/6032
- https://github.com/gruntwork-io/terragrunt/commit/3d6f10d6bccc851c6506a307a0b8675e0346e65e
- https://github.com/gruntwork-io/terragrunt/releases/tag/v1.0.4
- https://github.com/gruntwork-io/terragrunt
More gruntwork-io vulnerabilities
- TI-2026-84576 Symlink following in Terragrunt catalog clones temp directory CVSS 4.0MEDIUM 4.4
Sources
- CVE-2026-45099 · CVE Program
- CVE-2026-45099 · NVD
- FIRST EPSS
- GHSA-8394-6f8r-whxg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences