RabbitMQ rabbitmq-server topic matcher can cause combinatorial routing denial of service

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-67419?

CVE-2026-67419 is a vulnerability classified as Inefficient Algorithmic Complexity and Inefficient Regular Expression Complexity, affecting rabbitmq-server (affected versions: < 4.3.5). This vulnerability is rated High, with a CVSS score of 7.1. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

RabbitMQ is a messaging and streaming broker. Prior to 4.3.5, an authenticated user who can bind a queue to a topic exchange and publish to it can use consecutive # segments in a binding key to make both topic matchers revisit the same trie-node and routing-key-suffix states without memoization. The matcher materializes duplicate destinations before deduplication, causing combinatorial CPU work and memory pressure that can disrupt routing for all tenants. This vulnerability is fixed in 4.3.5.

Affected products and scope

  • The vendor advisory confirms that rabbitmq-server is affected in the range >= 4.3.0, < 4.3.5.
  • The confirmed patched release is 4.3.5.
  • The advisory describes both the current projection matcher and the legacy matcher, but it does not provide a confirmed affected range for other parallel branches. Do not infer that unlisted branches are safe or affected without branch-specific vendor guidance.

Technical details

RabbitMQ rabbitmq-server performs topic-exchange routing through rabbit_db_topic_exchange:match/3. The current projection path uses trie_match/7, while older projections use trie_match_v3/5. Both matchers recurse through # wildcard branches; when a binding key contains consecutive # segments, they can revisit the same trie-node and remaining routing-key-suffix state without memoization. The matcher materializes the full duplicate destination list before deduplication, so CPU work and intermediate memory use can grow combinatorially even though the final result produces only one queue delivery. Exploitation requires an authenticated account that can bind a queue to a topic exchange and publish to that exchange, corresponding to configure permission on the queue, read permission on the exchange, and write permission on the exchange. The vendor advisory states that ordinary tenant permissions are sufficient and that no administrator role, policymaker role, or non-default configuration is required. The available evidence confirms resource exhaustion and availability disruption, but does not establish the status of every parallel release branch outside the confirmed affected range.

Exploitability

The flaw is remotely reachable through normal topic-exchange operations on the broker. An attacker needs a low-privileged authenticated account that can bind a queue to a topic exchange and publish to that exchange; no separate user interaction is required during exploitation. Administrator privileges or special configuration are not required when the account already has the documented tenant permissions. The record marks a public exploit, and the vendor advisory includes a public proof of concept for triggering abnormal routing work; this demonstrates triggerability, not evidence of observed exploitation in the wild.

Technical impact

Successful exploitation can cause a low-privileged tenant to consume shared CPU and expand the routing-process heap during one match operation. The affected scope can include every vhost and client on the RabbitMQ node, not only the queue or exchange controlled by the attacker. This is a node-level availability impact; the available evidence does not indicate privilege escalation, code execution, data disclosure, or data modification. Existing resource limits may not interrupt one in-progress match/3 call, allowing severe node degradation before an external safeguard detects the condition.

Business impact

A low-privileged tenant can consume shared Erlang scheduler CPU for the duration of a routing traversal and increase routing-process memory through the duplicate destination list materialized before deduplication. Because the broker shares resources across vhosts, the effect can extend to routing for other tenants, vhosts, and clients on the same node. Realistic operational consequences include increased latency, reduced throughput, or routing disruption rather than an effect limited to the attacker's own queue. The available evidence concerns availability and does not establish data disclosure or data modification.

Remediation

  1. Upgrade rabbitmq-server to the exact confirmed patched release 4.3.5 for the affected branch.
  2. For branches outside the vendor-confirmed range, obtain branch-specific vendor guidance instead of assuming that the fix or version boundary from another branch applies to them.
  3. Do not rely on connection, channel, queue, message-size, or memory-alarm limits as the primary mitigation. The vendor advisory states that there is no effective configuration-level control that bounds a single in-progress matcher traversal or rejects binding keys with consecutive # segments.
  4. While patching is pending, reduce exposure by reviewing and removing unnecessary permissions to bind queues and publish to topic exchanges. This is containment based on the documented preconditions, not a confirmed fix.
  5. After applying the fix, rebuild active topic-binding projections according to vendor guidance so existing bindings use the corrected logic.
  6. Add regression coverage for consecutive-wildcard bindings, verifying that routing work remains bounded and that a valid match still produces exactly one delivery.

Detection

  1. Inventory nodes running rabbitmq-server and compare their versions with the confirmed affected range.
  2. Review topic exchanges and binding keys for adjacent # segments, especially bindings whose depth is comparable to the routing keys used in the deployment.
  3. Map vhost accounts and permissions, focusing on accounts that can configure queues, read from exchanges, and write to exchanges.
  4. Identify the active topic-binding projection and whether the deployment uses the current matcher or the legacy matcher.
  5. As precautionary telemetry, monitor for unusual Erlang scheduler CPU consumption, routing latency, and node memory pressure during the same time window. These are defensive signals, not vendor-confirmed IOCs.
  6. No specific log signature or IOC is established by the available evidence. The absence of an unusual event does not prove that a node is safe; version, binding, and permission checks are the primary exposure assessment.
Sources (20)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.