Skip to main content
Vulnerability Database/CVE-2026-67419

CVE-2026-67419: RabbitMQ Topic Exchange DOS Vulnerability

CVE-2026-67419 is a denial of service vulnerability in RabbitMQ that allows authenticated users to disrupt routing through malicious topic exchange bindings. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-67419 Overview

CVE-2026-67419 is an algorithmic complexity vulnerability [CWE-407] in RabbitMQ, the open-source messaging and streaming broker. Versions prior to 4.3.5 allow an authenticated user who can bind a queue to a topic exchange and publish messages to trigger pathological matching behavior. By using consecutive # segments in a binding key, an attacker forces the topic matcher to revisit identical trie-node and routing-key-suffix states without memoization. The matcher materializes duplicate destinations before deduplication, producing combinatorial CPU work and memory pressure. The resulting load can disrupt routing for all tenants sharing the broker. The issue is fixed in RabbitMQ 4.3.5.

Critical Impact

An authenticated low-privilege user can degrade or stall message routing across every tenant on a shared RabbitMQ broker.

Affected Products

  • RabbitMQ Server versions prior to 4.3.5
  • Deployments exposing topic exchanges to authenticated users with bind and publish permissions
  • Multi-tenant RabbitMQ clusters sharing topic exchange routing

Discovery Timeline

  • 2026-09-25 - CVE-2026-67419 published to NVD
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-67419

Vulnerability Analysis

RabbitMQ topic exchanges route messages by matching a message's routing key against bindings expressed as patterns. The pattern language supports two wildcards: * matches exactly one word, and # matches zero or more words. Matching is implemented via a trie walked by the trie_match/7 function in rabbit_db_topic_exchange.erl.

The # wildcard is inherently permissive because it can consume any number of segments. When a binding key contains two or more consecutive # segments, each # independently explores every suffix of the routing key. Without memoization, the matcher repeatedly recurses into the same trie node and routing-key suffix pairs. Work grows combinatorially with the number of # segments and the length of the routing key.

Before deduplication, duplicate destinations are materialized in the accumulator, amplifying both CPU usage and heap pressure. Because topic exchange routing runs in the broker's hot path, sustained publishes against a malicious binding can starve routing for unrelated tenants.

Root Cause

The root cause is the absence of memoization on (trie_node, routing_key_suffix) state pairs during pattern evaluation, combined with no upper bound on the number of multi-segment matchers in a single binding key.

Attack Vector

Exploitation requires network access to the broker and an account with configure permission on an exchange plus write permission to publish. The attacker creates a binding whose pattern contains consecutive # segments, then publishes messages with long routing keys. Each publish triggers excessive matching work on the broker node.

The upstream patch in commit c5ed7c4e97e02be688730803604cc7a88dbe4864 modifies trie_match to carry a Seen state alongside the accumulator, enabling memoization:

erlang
try
    {_Seen, Acc} = trie_match(XSrc, TrieTab, BindingTab, Root,
                              Words, BKeys, 0, {no_memo, []}),
    Acc
catch
    error:badarg ->
        []
end

The fix also introduces a validator (unit_topic_binding_validation, topic_binding_validation_prop) that limits the number of multi-segment matchers permitted in a single binding key. Source: GitHub Commit c5ed7c4.

Detection Methods for CVE-2026-67419

Indicators of Compromise

  • Topic exchange bindings whose routing key patterns contain two or more consecutive # segments, for example #.# or #.#.#.foo.
  • Sustained high CPU utilization on RabbitMQ broker nodes correlated with publishes to a specific exchange.
  • Growing Erlang process heap on routing processes and increased scheduler run queues.
  • Routing latency spikes or queue publish timeouts across unrelated tenants on a shared broker.

Detection Strategies

  • Enumerate current bindings via rabbitmqctl list_bindings and flag any routing key containing consecutive # tokens.
  • Correlate authenticated publish activity with CPU spikes on RabbitMQ nodes using broker metrics exported through Prometheus or the management plugin.
  • Alert on anomalous increases in message_stats.publish_details.rate paired with elevated erlang_vm_statistics_run_queues_length.

Monitoring Recommendations

  • Track RabbitMQ node CPU, scheduler utilization, and memory high-watermark events as leading indicators of algorithmic abuse.
  • Audit creation of new bindings on topic exchanges and record the authenticated principal performing the operation.
  • Forward RabbitMQ logs and metrics into a centralized analytics platform to detect patterns indicative of pathological binding keys across clusters.

How to Mitigate CVE-2026-67419

Immediate Actions Required

  • Upgrade all RabbitMQ Server nodes to version 4.3.5 or later.
  • Inventory existing topic exchange bindings and remove any that contain consecutive # segments.
  • Review authenticated users with configure and write permissions on topic exchanges and revoke access that is not required.

Patch Information

The vulnerability is fixed in RabbitMQ Server 4.3.5. The fix adds memoization to the trie_match routine in rabbit_db_topic_exchange.erl and enforces an upper bound on the number of multi-segment matchers accepted per binding. See the GitHub Security Advisory GHSA-h964-v5mf-22cq and the GitHub Release v4.3.5 for official release notes.

Workarounds

  • Restrict configure permission on topic exchanges to trusted operators until the upgrade is complete.
  • Apply vhost-level policies and admission controls that reject bindings containing consecutive # tokens.
  • Isolate sensitive workloads onto dedicated brokers to limit cross-tenant impact if abuse occurs.
bash
# Verify installed RabbitMQ version and list bindings for review
rabbitmqctl version
rabbitmqctl list_bindings source_name routing_key destination_name | \
    grep -E '#\.#'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.