The vulnerability is a combinatorial blowup in RabbitMQ's topic exchange matcher. The matcher uses recursive descent over a trie where # (zero-or-more-words) edges revisit shared substructure, but lacks memoization of (trie-node, remaining-suffix) states. A semantically valid but redundant binding like orders.#.#.us-east forces the matcher to explore paths proportional to the wildcard redundancy, not input size. One tenant with normal bind/publish rights can construct a binding that starves the matcher for every other tenant on a shared broker.

The cascade matters as much as the recursion. A slow matcher backs up the matcher worker pool, which starves the acceptor threads authenticating new connections — degradation extends to "no new clients can connect." Destination-set materialization under the expansion also forces GC pauses that stall unrelated tenants' processing. The matcher has two failure legs: traversal CPU and result-set materialization.

A HashSet at the result-collection site stops only the memory leg. Real fixes are traversal-level memoization (a new parameter or wrapper around the recursive call) or bind-time pre-compilation that normalizes the pattern before the matcher ever sees it. Validate the patch by reading the diff: the fingerprint differs between these approaches.

Defenders should check three things beyond applying the update. First, whether all matchers in the deployment — including deprecated, opt-in, or plugin-hosted variants — received the fix; legacy matchers often linger as fallbacks or for older protocol adapters. Second, whether bindings created before the upgrade still exist in their pre-normalized form, since some fixes only normalize on new bind. Third, whether dependent systems — federation link filters, shovel plugins, client SDKs, in-house routers that copied the trie-with-wildcards shape — have their own recursive matchers that need parallel review. For stateful broker upgrades, the severity-adjusted exposure window runs quarters, not days, and disclosure creates a hunting license across the AMQP-derived ecosystem.