This vulnerability represents a category error in RabbitMQ's permission model: the consistent-hash exchange's weight parameter was treated as a configuration value rather than a resource allocation directive. The permission check verifies whether a principal can create a binding, but never evaluates whether the binding's properties could exhaust memory.
The technical mechanism is straightforward but devastating. When a consistent-hash exchange receives a binding with a weight value, it calls lists:seq/1 to generate that many hash-ring positions. On 64-bit Erlang, each integer element in a proper list consumes approximately 28 bytes. A weight of 100 million therefore represents roughly 2.8GB per node before Khepri's overhead—RabbitMQ's reported ~800MB figure suggests some optimization, but the order of magnitude remains severe.
What makes this worse than a typical memory exhaustion bug is the blast radius. The hash-ring positions are stored in Khepri, RabbitMQ's internal tree store, which replicates synchronously across all cluster nodes. This means a single malicious binding propagates its memory footprint to every node in the cluster. More critically, this state is persistent—it survives broker restarts and failover attempts. There is no operational remediation (restarting nodes, failing over) that clears the condition without explicitly deleting the malicious binding. The vulnerability has converted a transient permission issue into a permanent infrastructure condition.
The permission model's failure was not that it was missing—it's that it modeled the wrong threat surface. The check answers "can this principal connect X to Y?" when it should have been answering "what are the resource consequences of connecting X to Y with these parameters?" This is a design assumption baked into the entire permission framework that the consistent-hash exchange exposed.
For defenders: verify you have no bindings with weight values exceeding a reasonable upper bound (the fix adds validation, but you need to check existing bindings now). If you cannot determine what is legitimate, treat any unexpectedly large weight as potentially malicious and investigate the principal that created it. Monitor Khepri store size as a leading indicator—this vulnerability will show growth correlated with binding operations rather than message throughput.
The governance question this raises: the consistent-hash exchange is a plugin, not core functionality. Plugin parameters may be implicitly trusted based on plugin status rather than subjected to the same threat modeling as core features. Review other plugins for parameters that control data structure allocation rather than routing logic.