CVE-2026-64672: Go/github.com/gruntwork-io/terragrunt vulnerability

Published Oct 15, 2026
·
Updated

Summary

Terragrunt's terragrunt catalog command clones each repository referenced in your catalog configuration into a temporary working directory. In affected versions, the clone path it derived was deterministic and sat under the shared system temporary directory, in the form <tmp>/catalog-<base64 sha1 of the repo URL>. Because that path was predictable and Terragrunt followed a symlink already present there instead of rejecting it, a local attacker could plant a symlink at that path and cause Terragrunt to delete a directory and re-clone into it outside the intended temporary root.

Impact

This affected users who ran terragrunt catalog on a host they shared with other local users or processes they did not fully trust, such as a multi-user server or a shared CI runner. The attack required a local attacker: a separate local user or process able to write to the shared system temporary directory. It was not remotely exploitable, and the victim had to run terragrunt catalog while the attacker's symlink was already in place.

Because the predictable path depended only on the repository URL being cataloged and the location of the system temporary directory, the attacker could compute it in advance and plant a symlink there before the victim ran the command. When the victim ran terragrunt catalog, Terragrunt followed the symlink out of the intended temporary root, deleted an existing <repoName> directory under the attacker-chosen parent, and repopulated that path with the cloned repository contents. All of this happened in the security context of the user running Terragrunt.

The attacker controlled the parent directory the symlink pointed to, but not the leaf name: the leaf was fixed to <repoName>, derived from the repository URL the victim cataloged. The primitive was deletion of an existing <repoName> directory outside the temporary root, followed by a re-clone into that same path. On a single-user machine with no hostile local processes, exposure was minimal.

Affected Versions

- Terragrunt < v1.1.1

Patches

This vulnerability has been resolved in Terragrunt version v1.1.1.

All users are strongly advised to upgrade.

Workarounds

If you cannot upgrade immediately, ensure that you do not allow untrusted parties to control the values of TMPDIR, TMP, and TEMP in environments where you run terragrunt catalog.

Technical Details

When you run terragrunt catalog, the catalog service iterates over the repositories in your configuration and prepares a local clone of each one. In affected versions, for a given repository URL it built a clone path by hashing the URL and joining the result under the shared system temporary directory:

<tmp>/catalog-<base64 sha1 of the repo URL>

This path was fully determined by the repository URL and the location of the system temporary directory, so anyone else on the machine who knew which repository a victim would catalog could compute it in advance. The catalog service passed this path into its clone preparation step.

As a result, an attacker who placed a symlink at <tmp>/catalog-<hash> pointing at a directory of their choosing caused both the removal and the re-clone to operate through that symlink. Both landed at <attacker-chosen-parent>/<repoName>, outside the intended temporary root.

Terragrunt v1.1.1 no longer derives a predictable clone path, so an attacker can no longer position a symlink at a location known in advance.

Credit

We would like to thank (@br0x2) for discovering and responsibly disclosing this vulnerability.

Affected Software

1 affected componentFixes available
go/github.com/gruntwork-io/terragrunt<1.1.1
1.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/gruntwork-io/terragrunt to a version that resolves this vulnerability.

    Fixed in 1.1.1
  2. Upgrade

    Upgrade Terragrunt to a version that resolves this vulnerability.

    Fixed in v1.1.1
  3. Compensating control

    If you cannot upgrade immediately, do not allow untrusted parties to control TMPDIR, TMP, or TEMP in environments where terragrunt catalog runs.

Event History

Oct 15, 2026
Advisory Published
via GitHub·06:21 PM
Data Sourced
via GitHub·06:21 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Is this exploitable remotely?

No. Exploitation requires a separate local user or process that can write to the shared system temporary directory.

2

Which environments are most exposed?

Hosts shared with untrusted local users or processes are affected, including multi-user servers and shared CI runners. A single-user host without untrusted processes able to write to the system temporary directory is not the described attack scenario.

3

What must happen for an attack to succeed?

The attacker must know the repository URL being cataloged and place a symlink at the corresponding predictable temporary path before the victim runs terragrunt catalog. The victim must then run that command while the symlink remains in place.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203