---
id: CVE-2026-45099
title: >-
  Terragrunt is a flexible orchestration tool that allows Infrastructure as Code
  written in OpenTofu or Terraform to scale
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
  fileM…
severity: medium
cwe:
  - CWE-22
  - CWE-20
vendor: gruntwork-io
product: github.com/gruntwork-io/terragrunt
affected:
  - github.com/gruntwork-io/terragrunt < 1.0.4
patched:
  - github.com/gruntwork-io/terragrunt 1.0.4
published: '2026-08-21'
updated: '2026-09-25'
sourceUpdated: '2026-09-25T14:23:59.847'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-45099'
references:
  - url: >-
      https://github.com/gruntwork-io/terragrunt/commit/3d6f10d6bccc851c6506a307a0b8675e0346e65e
    label: security-advisories@github.com
  - url: 'https://github.com/gruntwork-io/terragrunt/pull/6032'
    label: security-advisories@github.com
  - url: 'https://github.com/gruntwork-io/terragrunt/releases/tag/v1.0.4'
    label: security-advisories@github.com
  - url: >-
      https://github.com/gruntwork-io/terragrunt/security/advisories/GHSA-8394-6f8r-whxg
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-8394-6f8r-whxg'
tags:
  - nvd
  - ghsa
  - go
epss: 0.0054
epssPercentile: 0.43041
aliases:
  - GHSA-8394-6f8r-whxg
ecosystem: go
ingestedAt: '2026-08-17T16:57:25.230Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-45099)

Affected packages:

- `github.com/gruntwork-io/terragrunt < 1.0.4`

Patched in:

- `github.com/gruntwork-io/terragrunt 1.0.4`

Source: https://github.com/advisories/GHSA-8394-6f8r-whxg
