In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade org.springframework.amqp:spring-amqp to version 4.0.7, 4.1.3 or higher.
org.springframework.amqp:spring-amqp is a package that provides support for using Spring and Java with AMQP 0.9.1, and in particular RabbitMQ.
Affected versions of this package are vulnerable to Acceptance of Extraneous Untrusted Data With Trusted Data in the SimpleAmqpHeaderMapper class, whose toHeaders() method copies publisher-supplied AMQP headers over the framework-derived amqp_* headers it set from MessageProperties. A publisher able to send messages to a listener can set a header whose name collides with a framework header such as amqp_receivedUserId or amqp_consumerQueue, overwriting the trusted value that @RabbitListener handlers read. Exploitation requires the application to rely on an amqp_* header for authorization or routing decisions.
This vulnerability can be avoided by reading the trusted values directly from the MessageProperties of the org.springframework.amqp.core.Message instead of the mapped amqp_* headers.