CVE-2026-64672 (GHSA-wv6g-x823-wx9m) is a predictable-temp-path / symlink-following vulnerability (CWE-377 + CWE-59) in the terragrunt catalog command, fixed in v1.1.1 by PR #6438 (commit 668891c5a2ad2996f134bb8b00098754674ea94a, built from the series 102c2283, 1c5420e4, 893cc318, d14148e0, 6f713260).
Root cause: In the vulnerable version (confirmed by reading the v1.1.0 source), tui.CatalogTempPath(repoURL) computes the catalog clone root as <resolved os.TempDir()>/catalog-<base64(sha1(repoURL))>. The path is completely deterministic from the repository URL and sits in the shared, world-writable system temp directory. A local attacker who can predict which repository the victim will catalog can pre-create a symlink at that exact path pointing to a directory they control.
When the victim runs terragrunt catalog, tui.LoadURL calls CatalogTempPath and hands the path to module.NewRepo -> Repo.clone -> Repo.prepareCloneDirectory. There, fsys.MkdirAll(repo.path, ...) succeeds even though repo.path is a symlink (MkdirAll does not error when the target already exists as a directory), then repo.path = filepath.Join(repo.path, extractRepoName()) and fsys.RemoveAll(repo.path) recurses through the symlink and deletes a repository-named directory OUTSIDE the intended clone root in the victim's security context. The clone is then written through the symlink as well.
The fix removes the deterministic function (CatalogTempPath) and replaces it with CreateCatalogTempPath, which uses vfs.MkdirTemp with a random suffix so the root is no longer predictable. It also hardens cleanup in prepareCloneDirectory by introducing prepareCloneRoot/validateCloneRoot (rejecting os.ModeSymlink) and removeIncompleteClone (using vfs.ParentPathHasSymlink before RemoveAll), and adds a TempDirTracker so clones are cleaned up only at TUI exit.
Runtime indicators: Go profilers/stack traces would show the package-qualified function names tui.CatalogTempPath, , and the method (receiver in package ). The patch confirms these are the modified/lacking-check functions that exist in the vulnerable version; the newly added helpers (, , , , ) are mitigation code introduced by the fix and are NOT vulnerable functions.