An authenticated AMQP 1.0 client that can consume from a quorum queue can settle a message with the modified outcome and an x- message annotation of type double, float or null. From then on, each AMQP 1.0 consumer that the message is delivered to has its connection closed with amqp:internal-error. If the queue dead-letters into a stream, the message is lost (at-most-once), or at-least-once dead-lettering stops for all virtual hosts on the node (at-least-once).
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-ZALIFH8F.
settle_op_from_outcome/1 in deps/rabbit/src/rabbit_amqp_session.erl removes the AMQP type from the values of x- annotations of the modified outcome. A quorum queue stores these values in the message header, which is part of its Raft log and snapshots. When the message is later converted to AMQP 1.0, mc_util:infer_type/1 adds the type back, but it has no clause for floats and null and fails with function_clause. This happens in:
at-most-once strategy. The Ra server is restarted, and the message is neither in the queue nor in the streamrabbit_fifo_dlx_worker of the queue, when the message is dead-lettered into a stream with the at-least-once strategy. The worker is restarted, receives the same message and crashes again, until rabbit_fifo_dlx_sup reaches its restart intensity and terminates. rabbit_sup doesn't restart it, because it's a transient child4.4.0 only, the same rabbit_fifo_dlx_worker path with a quorum queue as the at-least-once dead-letter target, when the annotation is x-opt-delivery-timeAMQP 0-9-1 consumers aren't affected, because only integer, binary and boolean annotations are converted to AMQP 0-9-1 headers. Classic queues discard modified annotations.
A user who can consume from a quorum queue can close the connections of the other AMQP 1.0 consumers of that queue, up to 21 times per message with the default delivery limit. If the queue dead-letters, the message reaches the target with the annotation and does the same to the AMQP 1.0 consumers there.
A user with full permissions in a virtual host of their own can declare a quorum queue there that dead-letters into a stream with the at-least-once strategy, and stop at-least-once dead-lettering for all virtual hosts on the node. Dead letters of other users then stay in their source queues, and declaring a new at-least-once quorum queue fails. Because the message stays in the source queue, this happens again after a node restart, until that queue is deleted.
There's no disclosure of data and no access beyond the user's own permissions.