Traversée de chemin dans github.com/cli/cli/v2 (CVE-2026-64653)
Résumé
Traversée de chemin dans github.com/cli/cli/v2 (CVE-2026-64653). Risque d'opérations non autorisées ou de divulgation. Atténuation : mise à jour vers 2.97.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
A path traversal vulnerability has been identified in the GitHub CLI where some HTTP request URLs, REST API calls in particular, were built without properly escaping their variable path components. A value containing URL path metacharacters can alter the request path and cause gh to address a different resource than intended.
Details
Not all request URLs in the codebase were built with proper escaping of their variable path components. When a component is interpolated into the path without percent encoding, and that component contains URL path metacharacters, it breaks out of its intended segment and changes the effective request path.
In 2.97.0, request URLs are constructed in a safe manner, so a variable component can no longer escape its intended segment.
Impact
An attacker who can control a value that flows into a request path can cause gh to send the request to a different API endpoint than intended. This can lead the CLI to read or act on a resource other than the one the user meant to target.
Remediation and Mitigation
- Upgrade
ghto2.97.0. - Be cautious when running
ghagainst untrusted repositories or inputs whose names you do not control.
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-64653 a été découverte dans github.com/cli/cli/v2.
Risque d'opérations non autorisées ou de divulgation.
Action : mettez à jour github.com/cli/cli/v2 vers 2.97.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/cli/cli/v2 CVE-2026-64653 » sur le site de l'éditeur.
CVE-2026-64653 (github.com/cli/cli/v2) — CWE-22
Correctif : 2.97.0 — 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 traversée de chemin (CWE-22) affecte github.com/cli/cli/v2.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/cli/cli/v2.
Gravité : ?. Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 2.97.0.
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 'github.com/cli/cli/v2' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/cli/cli/v2を grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/cli/cli/v2 to 2.97.0ステージング環境で 2.97.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
État des correctifs par distribution
Paquets corrigés publiés par chaque distribution pour cette CVE
- Debian DEBIAN-CVE-2026-64653 gh
- Ubuntu UBUNTU-CVE-2026-64653 gh
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com