Vulnérabilité dans github.com/gruntwork-io/terragrunt (CVE-2026-64672)
Résumé
Vulnérabilité dans github.com/gruntwork-io/terragrunt (CVE-2026-64672). Risque d'opérations non autorisées ou de divulgation. Exploitable via TMPDIR. Atténuation : mise à jour vers 1.1.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
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 /catalog-. 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 `` directory under the attacker-chosen parent, and repopulated that path with the cloned repository contents. Al…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-64672 a été découverte dans github.com/gruntwork-io/terragrunt.
Des attaquants peuvent cibler un point d'entrée spécifique comme TMPDIR à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour github.com/gruntwork-io/terragrunt vers 1.1.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/gruntwork-io/terragrunt CVE-2026-64672 » sur le site de l'éditeur.
CVE-2026-64672 (github.com/gruntwork-io/terragrunt) — CWE-59
Surface d'attaque : TMPDIR / TMP / TEMP
Correctif : 1.1.1 — appliquer immédiatement
Contournement : 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.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-59) affecte github.com/gruntwork-io/terragrunt. Les attaquants atteignent le code vulnérable via TMPDIR.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/gruntwork-io/terragrunt. Surface d'attaque : TMPDIR / TMP / TEMP.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 1.1.1.
Contournement : 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.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'github.com/gruntwork-io/terragrunt' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/gruntwork-io/terragruntを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
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`.パッチが適用されるまでの応急処置として、If you cannot upgrade immediately, ensure that you do not allow untrusted parties to control the values of
TMPDIR,TMP, andTEMPin environments where you runterragrunt catalog. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade github.com/gruntwork-io/terragrunt to 1.1.1ステージング環境で 1.1.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- web github.com
- web github.com
- web github.com
- web github.com