Skip to content
OpenAdvisories

Description

The RabbitMQ Java client library allows Java and JVM-based applications to connect to and interact with RabbitMQ nodes. Prior to 5.34.0, AMQConnection.start() applies Math.min(maxInboundMessageBodySize, frameMax) after Connection.Tune negotiation even though AMQP defines frameMax value zero as unlimited and ConnectionFactory.DEFAULT_FRAME_MAX is zero. When the client default and server-negotiated value are both zero, the result is passed to Utils.framePayloadLimit(int), which interprets zero as Integer.MAX_VALUE and disables the configured maxInboundMessageBodySize cap. A malicious AMQP server, or a man-in-the-middle attacker able to modify Connection.Tune and inject frames into the connection, can then send an oversized frame of any frame type, causing Frame.readFrom() to allocate a large byte array before content-level validation and potentially terminate the client process through memory exhaustion. This issue is fixed in version 5.34.0.

Affected products

VendorProductAffectedFixed
rabbitmq rabbitmq-java-client < 5.34.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 rabbitmq-java-client No fix yet —
Debian 12 rabbitmq-java-client No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rabbitmq-java-client No fix yet —
Ubuntu 26.04 LTS rabbitmq-java-client No fix yet —
Ubuntu 24.04 LTS rabbitmq-java-client No fix yet —
Ubuntu 22.04 LTS rabbitmq-java-client No fix yet —
Ubuntu 20.04 LTS rabbitmq-java-client No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS rabbitmq-java-client No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling cassandra-reaper 5.0.1-r2 —
Wolfi rolling druid 37.0.0-r59 —
Wolfi rolling logstash-9.3 +1 No fix yet —
Wolfi rolling logstash-9.4 +1 9.4.7-r1 —
Wolfi rolling thingsboard-tb-node +1 4.3.1.5-r1 —
Wolfi rolling zipkin 3.6.1-r36 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.rabbitmq:amqp-client < 5.34.0 5.34.0 GHSA-jh4v-gfqj-7rhx

References