Skip to content
Medium 5.3

AMQP 1.0: a float or null annotation in the modified outcome crashes consumer sessions and dead-letter workers

GHSA-4965-vg44-xv63 First seen on SecPulse

Summary

Summary

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...

Affected packages

PackageAffected → Fixed
otherrabbitmq-server
>= 4.4.0, < 4.4.1→ 4.4.1
otherrabbitmq-server
>= 4.3.0, < 4.3.8→ 4.3.8
otherrabbitmq-server
>= 4.2.0, < 4.2.13→ 4.2.13
otherrabbitmq-server
>= 4.1.0, < 4.1.18→ 4.1.18
otherrabbitmq-server
>= 3.13.0, < 3.13.22→ 3.13.22
Original description The description as published by the source.

Summary

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.

Details

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:

  • The session process of each AMQP 1.0 consumer that the message is delivered to. The session crashes, and the queue offers the message to the next consumer, up to the delivery limit (20 by default). This continues after a node restart
  • The Ra server of the queue, when the message is dead-lettered into a stream with the at-most-once strategy. The Ra server is restarted, and the message is neither in the queue nor in the stream
  • The rabbit_fifo_dlx_worker of t…

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details