CVE-2026-59404: Spring AMQP Unbounded Recursion over Nested AMQP Header Field-Arrays/Field-Tables
DefaultMessagePropertiesConverter recurses into nested List and Map header values when converting LongString instances, without any depth limit. AMQP 0-9-1 field-arrays and field-tables may nest arbitrarily, so a single crafted message with deeply nested headers (a few tens of KB on the wire) triggers a StackOverflowError in the consumer thread before any application code is reached. If the broker redelivers the unacknowledged message, the listener container enters a crash loop, resulting in a denial of service.
Applications are affected if they consume messages with a Spring AMQP listener container or RabbitTemplate.receive() from a queue to which an attacker can publish messages.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications are affected when they consume from a queue using a Spring AMQP listener container or RabbitTemplate.receive() and an attacker can publish messages to that queue. The vulnerable conversion occurs before application code receives the message.
What does an attacker need to exploit it?
The attacker needs permission to publish a crafted AMQP message to a queue consumed by the application. The message must contain deeply nested AMQP header field-arrays or field-tables that trigger unbounded recursive conversion of LongString values.
Are default settings affected?
The issue is in DefaultMessagePropertiesConverter, which recurses through nested List and Map header values without a depth limit. The provided information does not identify a configuration change required for exposure beyond consuming attacker-publishable messages through the affected Spring AMQP receive paths.
What happens after a malicious message is consumed?
The consumer thread throws a StackOverflowError before application code runs. If the broker redelivers the unacknowledged message, the listener container can repeatedly crash, causing a denial of service.