Catégories
CVE-2026-71494

Vulnérabilité dans github.com/infracost/infracost (CVE-2026-71494)

Résumé

Vulnérabilité dans github.com/infracost/infracost (CVE-2026-71494). Risque d'opérations non autorisées ou de divulgation. Exploitable via pull_request_target. Atténuation : mise à jour vers 0.10.45 ou plus.

Description d'origine

La description telle que publiée par la source (souvent en anglais).

Impact

Sensitive information exposure in the Infracost Terraform Cloud/Enterprise integration. Several code paths attached a configured secret token to a request whose host was taken straight from the scanned Terraform, with no check that the host was the trusted endpoint.

The condition that matters is whether a Terraform Cloud/Enterprise (or registry) token is present in the run: if one is, the injected hostname can disclose it. Impact therefore depends on the trigger. Under on: pull_request (the only configuration in Infracost's documentation) fork pull requests run without secrets, so no token is present. It only reaches token disclosure under pull_request_target, a same-repository pull request, or another CI setup that provides the token alongside untrusted Terraform, and exploiting an untrusted fork pull request also typically needs a maintainer to approve the workflow run. The patch scopes the token to the trusted host regardless of trigger.

Patches

Fixed in v0.10.45 (#3590) by attaching a token only when the destination host matches the configured trusted host; otherwise Infracost refuses to send it and skips remote variable loading

  • Installed via the official script, a package manager, or the latest Docker tag: upgrade to v0.10.45 (or later) to receive the fix.
  • Pinned to a specific version or image digest: bump to v0.10.45.

Workarounds

No full fix without upgrading. To limit expo…

Source: NIST National Vulnerability Database 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-71494 a été découverte dans github.com/infracost/infracost.
Des attaquants peuvent cibler un point d'entrée spécifique comme pull_request_target à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour github.com/infracost/infracost vers 0.10.45 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/infracost/infracost CVE-2026-71494 » sur le site de l'éditeur.

CVE-2026-71494 (github.com/infracost/infracost) — CWE-522
Surface d'attaque : pull_request_target / latest / organization / workspace
Correctif : 0.10.45 — appliquer immédiatement
Contournement : No full fix without upgrading.
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.

❓ Quel est le problème

Une vulnérabilité (CWE-522) affecte github.com/infracost/infracost. Les attaquants atteignent le code vulnérable via pull_request_target.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de github.com/infracost/infracost. Surface d'attaque : pull_request_target / latest / organization / workspace.

🔥 Gravité

Gravité : ?. Risque d'opérations non autorisées ou de divulgation.

🔧 Comment corriger

Mettre à jour vers 0.10.45.

🛡️ Contournement

Contournement : No full fix without upgrading.

🔍 Détection

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

  1. 1
    Identify exposure identify
    grep -r 'github.com/infracost/infracost' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/infracost/infracost を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply temporary workaround mitigate
    No full fix without upgrading.

    パッチが適用されるまでの応急処置として、No full fix without upgrading. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patch patch
    Upgrade github.com/infracost/infracost to 0.10.45

    ステージング環境で 0.10.45 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Paquets affectés

go github.com/infracost/infracost
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10.45"}]}]

Références

Nous utilisons des cookies pour l'analyse d'audience et la mesure publicitaire. Ce réglage s'applique à tous les sites de Game co., Ltd. En savoir plus