CVE Professor
/
All CVEs
CVE-2026-135265

CVE-2026-135265 — Hashicorp Consul — CWE-862

HIGH CVSS 7.5 Shodan

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity None I:N
Availability High A:H
AI Security Analysis & Remediation

🎯 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.

  • 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

  • Service Identification: An attacker scans for open ports 8500 (HTTP API) or 8300 (RPC).
  • Version Fingerprinting:
  • * Query the /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

  • DoS Impact: The Consul server process crashes. All services registered with Consul become unavailable to clients. Service discovery fails. Configuration management breaks.
  • Integrity Impact (via ACL Bypass): If the ACL bypass allows unauthorized writes/deletes to the KV store, an attacker can:
  • * Modify service configurations. * Remove critical service registrations. * Inject malicious configuration data that is then distributed to clients. * This can lead to cascading failures in the microservices architecture.

    🌍 Real World Impact

  • Availability (High): The primary impact is a complete outage of the Consul server. In a microservices environment, this leads to:
  • * Failure of service discovery. * Inability for services to find each other. * Failure of health checks. * Potential cascading failures across the entire application stack.
  • Integrity (Medium/High - Context Dependent): Due to the ACL bypass, an unauthenticated or low-privileged user can potentially modify the state of the Consul KV store. This could lead to:
  • * Unauthorized changes to service configurations. * Deletion of critical service registrations. * Injection of malicious data into the configuration store.
  • Confidentiality (Low): The CVE description does not indicate direct data exfiltration, but if the ACL bypass allows reading of sensitive KV store entries, confidentiality could be impacted. However, the CVSS vector scores C:N, suggesting the primary risk is DoS and Integrity.
  • Practical Consequences:

  • Production Outage: Immediate loss of service availability.

  • Data Corruption: Potential for unauthorized modification of service configurations.

  • Recovery Time: Restarting Consul servers may take time, and if the KV store is corrupted, recovery from backup may be necessary.
  • 🛡️ Remediation & Mitigation

    1. Upgrade (Primary Fix)

  • Affected Versions: Consul Community Edition and Enterprise up to 2.1.0.
  • Fixed Versions:
  • * Consul Community Edition 2.1.1 * Consul Enterprise 2.1.1 and 1.21.20
  • Action: Immediately upgrade all Consul servers and agents to the fixed versions.
  • 2. Workarounds (If Immediate Upgrade is Not Possible)

  • Network Segmentation: Restrict access to the Consul HTTP API (port 8500) and RPC ports (8300, 8301) to trusted internal networks only. Use firewalls to block external access.
  • ACL Enforcement: Ensure that ACLs are enabled and that all clients are using tokens with the minimum required permissions. However, note that this vulnerability involves inconsistent* ACL enforcement, so this is a partial mitigation.
  • WAF Rules: Implement Web Application Firewall rules to detect and block malformed transaction requests.
  • Example ModSecurity Rule (Illustrative):*
    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

  • Log Monitoring: Monitor Consul server logs for:
  • * Unhandled exceptions or panics. * Repeated failed transaction requests. * Unauthorized access attempts to the /v1/txn endpoint.
  • Network Traffic Analysis: Look for:
  • * POST requests to /v1/txn from untrusted sources. * Malformed JSON payloads in transaction requests. * High frequency of transaction requests (potential DoS attempt).
  • Integrity Checks: Regularly audit the Consul KV store for unauthorized changes. Use Consul's audit logging (if enabled) to track changes to sensitive keys.
  • ⚠️ Urgency

  • CVSS Score: 7.5 (HIGH)
  • CISA KEV: No (Not currently listed in the Known Exploited Vulnerabilities catalog)
  • Exploit Complexity: Low (PR:N, AC:L)
  • Priority: HIGH
  • Recommendation:

  • Immediate Action: Upgrade to Consul 2.1.1 (Community) or 2.1.1/1.21.20 (Enterprise) as soon as possible.

  • Interim Mitigation: If upgrade is delayed, restrict network access to the Consul API to trusted internal networks only and monitor for unauthorized access attempts.

  • Reasoning: The vulnerability allows unauthenticated remote attackers to crash the Consul server, leading to a complete loss of service discovery and configuration management. This can have a cascading impact on the entire microservices architecture. The low complexity and lack of required privileges make this a high-priority threat.


[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Hashicorp Consul"
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (2)
Hashicorp:Consul Hashicorp:Consul Enterprise
References & Advisories (1)
Related CVEs
8.8
CVE-2026-145179
StoreEngine plugin for WordPress before 2.7.1 contains a missing authorization vulnerability that exposes webh
8.8
CVE-2026-144410
Emby Server is a personal media server. Prior to 4.10.2.0 and beta 4.11.0.9, an authenticated user can supply
8.7
CVE-2026-126098
Missing authorization in the API token REST endpoint GET /api/v1/apitoken/{tokenId}/jwt in dotCMS through 26.1
8.6
CVE-2026-145259
RayLabsHQ gitea-mirror before 3.57.0 contains a missing authorization vulnerability in /api/auth/sso/register
8.5
CVE-2026-120096
Missing authorization in the push publishing endpoints REST API (/api/v1/environments/endpoints) and in the pu
8.2
CVE-2026-145187
Internxt drive-server-wip before commit 10093cb contains a missing authorization vulnerability that allows una
8.1
CVE-2026-144674
UVdesk core-framework through 1.1.7 contains a missing authorization vulnerability in EmailSettingsXHR::update