Vulnérabilité dans google-github-actions/run-gemini-cli (CVE-2026-12537)
Résumé
Vulnérabilité dans google-github-actions/run-gemini-cli (CVE-2026-12537). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via run_shell_command. Atténuation : mise à jour vers 0.1.22 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
Gemini CLI (@google/gemini-cli) and the run-gemini-cli GitHub Action are being updated to harden workspace trust and tool allowlisting, in particular when used in untrusted environments like GitHub Actions. This update introduces a breaking change to how non-interactive (headless) environments handle folder trust, which may impact existing CI/CD workflows under specific conditions.
Details
Folder Trust in Headless Mode
In previous versions, Gemini CLI running in CI environments (headless mode) automatically trusted workspace folders for the purpose of loading configuration and environment variables. This is potentially risky in situations where Gemini CLI runs on untrusted folders in headless mode (e.g. CI workflows that review user-submitted pull requests). If used with untrusted directory contents, this could lead to remote code execution via malicious environment variables in the local .gemini/ directory.
To ensure consistency and user control, the latest update aligns headless mode behavior with interactive mode, requiring folders to be explicitly trusted before configuration files (such as .env) are processed.
As a result of this change, GitHub Actions and other automated pipelines that rely on the previous automatic trust behavior will fail to load workspace-specific settings until they are updated to use explicit trust mechanisms.
Tool Allowlisting under --yolo
In previous versions, when Gemini CLI was configured to run in --yolo mode, it…
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-12537 a été découverte dans google-github-actions/run-gemini-cli.
Des attaquants peuvent cibler un point d'entrée spécifique comme run_shell_command à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 7.8/10.
Action : mettez à jour google-github-actions/run-gemini-cli vers 0.1.22 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « google-github-actions/run-gemini-cli CVE-2026-12537 » sur le site de l'éditeur.
CVE-2026-12537 (google-github-actions/run-gemini-cli) — CWE-20 / CVSS v3 7.8
Vecteur d'attaque : local / non authentifié
Surface d'attaque : run_shell_command
Correctif : 0.1.22 — appliquer immédiatement
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-20) affecte google-github-actions/run-gemini-cli. Les attaquants atteignent le code vulnérable via run_shell_command sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de google-github-actions/run-gemini-cli. Surface d'attaque : run_shell_command.
Gravité : Élevée (CVSS 7.8/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 0.1.22.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
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 'google-github-actions/run-gemini-cli' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
google-github-actions/run-gemini-cliを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade google-github-actions/run-gemini-cli to 0.1.22ステージング環境で 0.1.22 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com