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.
Published: 2026-08-21
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Deletion
Action: Patch
AI Analysis

Impact

Terragrunt’s file cleanup routine trusts paths reconstructed from a downloaded module’s .terragrunt-module-manifest. A crafted manifest may contain absolute or traversal paths, allowing the cleanup step to delete files outside the module cache before Terraform or OpenTofu runs. The result is an arbitrary file removal that can erase local source code, configuration files, or other artefacts, thereby disrupting CI/CD pipelines or other local workflows. The weakness is a path traversal and deletion flaw (CWE‑22).

Affected Systems

All installations of gruntwork‑io’s Terragrunt prior to version 1.0.4 are affected. Users running 1.0.3 or earlier must evaluate whether they use external modules that could supply a tampered .terragrunt‑module‑manifest.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is not reported and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is remote through a malicious or compromised external module source that an attacker can control or influence, enabling the attacker to create a malicious manifest. Successful exploitation would allow deletion of arbitrary files that the Terragrunt process can access, potentially breaking build pipelines, removing code, or deleting configuration files. The impact is limited to the local environment where Terragrunt is executed, but it could affect continuous integration/continuous deployment workflows if unmitigated.

Generated by OpenCVE AI on August 21, 2026 at 21:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update to Terragrunt version 1.0.4 or later, which removes the unsafe path trust in the module manifest cleanup process.
  • Verify that all external modules originate from trusted sources and audit the .terragrunt‑module‑manifest for absolute or traversal paths before use.
  • If an immediate upgrade is not possible, add an additional layer of file permission checks or sandboxing to protect critical directories from deletion during module cleanup, and consider disabling the automatic cleanup feature until the vulnerable code is patched.

Generated by OpenCVE AI on August 21, 2026 at 21:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-8394-6f8r-whxg Terragrunt: Arbitrary File Deletion via Malicious Module Manifest
History

Tue, 25 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 23 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Gruntwork-io
Gruntwork-io terragrunt
Vendors & Products Gruntwork-io
Gruntwork-io terragrunt

Fri, 21 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
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.
Title Terragrunt: Arbitrary File Deletion via Malicious Module Manifest
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Gruntwork-io Terragrunt
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-25T14:23:16.006Z

Reserved: 2026-05-08T19:27:26.698Z

Link: CVE-2026-45099

cve-icon Vulnrichment

Updated: 2026-08-25T14:23:12.234Z

cve-icon NVD

Status : Received

Published: 2026-08-21T21:16:59.403

Modified: 2026-08-25T15:16:32.377

Link: CVE-2026-45099

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-23T16:40:48Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')