Introduction
A single malformed transaction sent to a Consul server's internal RPC port could crash not only the server that received it but, once committed, every server that applies it, and those servers may crash again each time they restart and replay the log. Because the vulnerable path requires no ACL token, even under a default-deny ACL policy, CVE-2026-135265 is best understood as a potential cluster availability problem rather than an isolated process crash.
Consul is HashiCorp's service networking product. It provides service discovery, secure communication and network automation across cloud, Kubernetes, virtual machine and on-premises environments. HashiCorp became part of IBM when IBM completed its acquisition on February 27, 2025, a transaction with an enterprise value of $6.4 billion. Consul servers coordinate cluster state through Raft consensus, which is why a flaw that reaches the replicated state machine can affect the whole server set rather than one node.
Technical Information
Summary
| Field | Value |
|---|---|
| Advisory | HCSEC-2026-61, published December 2, 2026 |
| CVSS 3.1 | 7.5 High (HashiCorp CNA score) |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Weakness | CWE-862, Missing Authorization |
| Component | Server RPC transaction endpoint (Txn.Apply, Txn.Read) |
| Network exposure | Server RPC port, TCP 8300 by default; not reachable through the HTTP API |
| ACL token required | No, including with a default-deny ACL policy |
The CVSS assessment is HashiCorp's. NVD had not supplied an independent NIST score in the reviewed record. The scored impact is availability only. The sources establish inconsistent ACL enforcement and server crashes, but they do not establish code execution, data theft, or a specific unauthorized data modification outcome.
Root cause: trusting the shape of a decoded union struct
The Txn RPC endpoint accepts a list of TxnOp structs. Each TxnOp is a union-style struct with pointer fields: KV, Node, Service, Check, Session and the deprecated Intention. After msgpack decoding, the endpoint implicitly trusted three properties of the input:
- Each
TxnOphad exactly one field set. - No entry in
Opswasnil. - A legacy
Intentionop always carried anIntentionbody.
None of these were enforced. When any of them was false, the precheck logic (which performs validation and ACL checks) and the state store could disagree about what an op actually was.
The first property is the authorization gap. preCheck in agent/consul/txn_endpoint.go dispatches with a switch { case op.KV != nil: ... case op.Intention != nil: ... }, which only inspects the first matching field. A request could pair a harmless field, such as a Session delete (the combination used in the new regression test), with a second payload. The precheck validated and authorized only the first field, while later code acted on the other. This is the concrete mechanism behind the advisory's statement that the endpoint did not consistently enforce ACL authorization for every operation type it accepts.
The second and third properties are the crash conditions. A nil entry in Ops, or a legacy intention op without a body, could lead Go code to dereference a nil pointer. For intention ops, the precheck only verified that the verb was a known value (via intentionVerbValidate), and the state store's delete path read op.Intention.ID directly.
Why a committed entry is worse than a crashed node
If the nil dereference happened in the FSM after Raft committed the entry, every server applying that log entry could panic. Depending on the request, the advisory says either the receiving server or every server applying the committed request may be affected, potentially removing quorum and making the cluster unavailable. Because the entry is in the Raft log, servers that committed it may terminate again when they restart and replay the log. The advisory does not publish a recovery procedure for that condition, so a restart should not be assumed to resolve it.
Attack flow
Based on the advisory and the patch description, the exploitation path looks like this:
- The attacker reaches a Consul server's RPC listener (TCP 8300 by default). The HTTP API is not a path to this bug.
- If
tls.internal_rpc.verify_incomingis disabled, which is the default, no credential is needed to connect. If it is enabled, the attacker needs a client certificate signed by the cluster certificate authority. - The attacker submits a transaction over msgpack RPC containing malformed ops: a
nilentry inOps, a legacy intention op with a missing body, or an op that sets more than one operation type so thatpreCheckvalidates only the first. - No ACL token is required on this path, even with a default-deny ACL policy.
- Depending on the request, the receiving server crashes, or the malformed entry is committed through Raft and every server applying it panics in the FSM.
- Servers that committed the entry may crash again on restart while replaying the log, which can prolong quorum loss.
No public exploit payload, packet format or proof of concept appears in the reviewed sources.
Exploitation status
The reviewed sources do not establish active exploitation. HashiCorp credits an internal team with the finding, and the Cloudflare Radar CVE entry names no threat actor, public exploit or campaign, and supplies no EPSS score. The retrieved CISA KEV catalog snapshot is dated November 30, 2026, which predates disclosure, so it says nothing about current KEV status.
Patch Information
HashiCorp fixed the issue in Consul Community Edition 2.1.1 and Consul Enterprise 2.1.1 and 1.21.20. The public code change is PR #24194, titled fix: tighten validation of operations submitted to the Txn endpoint. It was merged on November 27, 2026 with the backport/2.1 label, and appears in the v2.1.1 release notes (dated November 30, 2026) as:
rpc: tighten validation of operations submitted to the Txn endpoint. [GH-24194]
The release notes list this under IMPROVEMENTS, not SECURITY, so it is easy to miss when scanning the changelog. The Enterprise 1.21.20 backport is closed source and has no public diff.
The PR addresses the problem in four layers.
1. Exactly one operation type per op
A new FieldCount() helper in agent/structs/txn.go counts how many operation pointers are set (excerpt as published):
func (op *TxnOp) FieldCount() int { n := 0 for _, set := range []bool{ op.KV != nil, op.Node != nil, op.Service != nil, op.Check != nil, op.Session != nil, op.Intention != nil, } {
preCheck now rejects any op that sets more than one type before it reaches the switch:
// Each op must set exactly one operation type. if op.FieldCount() > 1 { errors = append(errors, &structs.TxnError{ OpIndex: i, What: "exactly one operation type must be set", }) continue }
This closes the gap where the precheck authorized one field while later code acted on another. A reflection-based test, TestTxnOp_FieldCount_CoversAllFields, fails the build if a new field is added to TxnOp without being counted, which keeps this class of bug from coming back unnoticed.
2. Nil ops rejected early
A new helper, nilTxnOpErrors, scans Ops for nil entries. Both Txn.Apply and Txn.Read call it immediately after forwarding and before any locking, authorization or Raft apply:
// Reject malformed (nil) ops before they are used. if reply.Errors = nilTxnOpErrors(args.Ops); len(reply.Errors) > 0 { return nil }
The request now fails with a per-op TxnError (operation must not be nil) instead of crashing on a nil dereference.
3. Legacy intention ops no longer accepted
Previously the intention branch of preCheck only checked that the verb was known. The fix removes intentionVerbValidate and rejects the op outright:
case op.Intention != nil: // Not supported via this endpoint. errors = append(errors, &structs.TxnError{ OpIndex: i, What: "intention operations are not supported in transactions", })
Per the PR description, legacy intention replication and Raft log replay still work, because the leader writes those entries directly to Raft and the FSM still applies them. Only the externally reachable path is closed.
4. Defense in depth in the state store
In agent/consul/state/txn.go, txnLegacyIntention now returns an error instead of dereferencing a missing body, even if a malformed intention op reaches the FSM, for example from an older log entry:
case structs.IntentionOpCreate, structs.IntentionOpUpdate: if op.Intention == nil { return fmt.Errorf("Intention op %q requires an intention", op.Op) }
The same guard covers IntentionOpDelete, which previously read op.Intention.ID directly. This layer matters for recovery. A returned error lets a server replay its Raft log without panicking, whereas a panic would crash it on every restart.
Regression tests
TestStateStore_Txn_LegacyIntention_MissingIntentionassertsrequire.NotPanicsfor create, update and delete with a missing body.TestTxn_Apply_RejectsLegacyIntentionsends intention ops with a missing body, a valid body and multiple op types over msgpack RPC, and checks that each gets one error and that no legacy intentions are stored.TestTxn_NilOpRejectedsends a valid KV get followed bynilto bothTxn.ApplyandTxn.Readand expects an error atOpIndex1.- A new case in
TestTxn_Validationcovers the exactly-one-operation-type error.
Related change in 2.1.1
The same release includes GH-24185, which rejects /v1/txn node, service and check writes with a nondefault PeerName and stops node:write and service:write rules from applying to peer-imported entries. It tightens nearby transaction authorization, but HashiCorp does not tie it to this CVE.
Interim controls before upgrading
For deployments not yet upgraded, the advisory identifies mutual TLS on the server RPC port and restricted network access to that port as measures that limit exploitation. The relevant setting is tls.internal_rpc.verify_incoming, which is disabled by default. Enabling it requires callers to present a client certificate signed by the cluster certificate authority. These controls narrow who can reach the vulnerable code, but certificate holders with network access can still reach it, and neither control corrects the underlying validation and authorization defect.
Affected Systems and Versions
| Product or release line | Affected | Fixed version |
|---|---|---|
| Consul Community Edition | 1.4.0 up to and including 2.1.0 | 2.1.1 |
| Consul Enterprise, 2.1 line | Releases up to and including 2.1.0 | 2.1.1 |
| Consul Enterprise, 1.21 line | Releases before 1.21.20 | 1.21.20 (explicitly unaffected in the CVE record) |
| Consul Enterprise, 1.22 line | 1.22.0 explicitly marked affected in the CVE record | No fixed 1.22 release identified in the advisory |
A simple rule that everything below 2.1.1 is vulnerable would incorrectly include Enterprise 1.21.20. And 2.1.0, which fixed the earlier leaf certificate issue CVE-2026-105765, is not fixed for this CVE.
Configuration factors that change exposure:
| Access condition | Credential requirement | Consequence |
|---|---|---|
Server RPC reachable, tls.internal_rpc.verify_incoming disabled (default) | None | Any caller reaching the port can hit the vulnerable endpoint without an ACL token |
Server RPC reachable, tls.internal_rpc.verify_incoming enabled | Client certificate signed by the cluster CA | Limited to callers with an accepted certificate; ACL token still not needed |
| HTTP API only | Not applicable | Advisory states the issue is not reachable through the HTTP API |
Vendor Security History
This is the third Consul advisory in recent months touching RPC robustness or authorization boundaries, though each involves a different mechanism:
| Advisory | CVE | Mechanism | Fixed releases |
|---|---|---|---|
| HCSEC-2026-35 (September 10, 2026) | CVE-2026-87106 | Native RPC listener did not limit request header size before method validation or ACL evaluation, allowing excessive memory use; required RPC reachability and a completed mutual TLS handshake, but no ACL token | Consul 2.0.4; Enterprise 1.21.18, 1.22.12 or 2.0.4 |
| HCSEC-2026-46 (October 26, 2026) | CVE-2026-105765 | Agent service mesh leaf certificate API could return a cached certificate and private key without verifying the caller's ACL token | Community 2.1.0; Enterprise 2.1.0 or 1.21.19 |
| HCSEC-2026-61 (December 2, 2026) | CVE-2026-135265 | Txn RPC endpoint did not consistently validate and authorize operation types; malformed ops could crash servers, including on log replay | Community 2.1.1; Enterprise 2.1.1 or 1.21.20 |
The common thread is the difference between authentication and authorization. Mutual TLS controls which certificate holders can connect; ACLs control which operations they may perform. In both RPC advisories, the vulnerable processing happened on a path where ACLs did not stop the attacker, so transport controls and network restrictions were the effective exposure limiters until the software fix.
On process, HashiCorp publishes bulletins on HashiCorp Discuss with email and RSS notifications, accepts reports at [email protected], and operates as a CNA. Canada's Cyber Centre separately publicized the HCSEC-2026-46 advisory. These establish a documented disclosure process, though the sources do not provide measured response times.
References
- NVD entry for CVE-2026-135265
- CVE Record for CVE-2026-135265
- HCSEC-2026-61: Consul vulnerable to denial of service in server RPC transaction endpoint
- GitHub PR 24194: tighten validation of operations submitted to the Txn endpoint
- GitHub API: issue 24194
- GitHub API: PR 24194 changed files
- GitHub API: Consul v2.1.1 release
- Consul v2.1.1 release notes on newreleases.io
- Cloudflare Radar Zero Wire entry for CVE-2026-135265
- Consul TLS configuration parameters
- Consul Core security model
- HCSEC-2026-35: Consul denial of service in the native RPC listener
- HCSEC-2026-46: Consul authorization bypass in the agent service mesh leaf certificate API
- Canadian Centre for Cyber Security: HashiCorp security advisory AV26 1087
- HashiCorp vulnerability management
- HashiCorp Consul product page
- IBM completes acquisition of HashiCorp
- CISA Known Exploited Vulnerabilities catalog feed



