RabbitMQ rabbitmq-java-client
RabbitMQ: JSONReader in the default JSON-RPC mapper never terminates on truncated input, causing DoS
The RabbitMQ Java client library allows Java and JVM-based applications to connect to and interact with RabbitMQ nodes. Prior to 5.37.0, com.rabbitmq.tools.json.JSONReader.read() fails to terminate when input ends inside a quoted string or a line comment because its string and whitespace scanners do not stop at CharacterIterator.DONE. The default DefaultJsonRpcMapper passes JSON-RPC message bodies to this parser for JsonRpcServer and client replies. A truncated string causes the parser to append replacement end markers until heap exhaustion, while a line comment without a terminating newline can keep a thread consuming CPU indefinitely, resulting in denial of service. This issue is fixed in version 5.37.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.36.1
Fixed in 5.36.1
- < 5.36.1
Fixed in 5.36.1
Mitigation
Upgrade rabbitmq-java-client to 5.36.1 or later.
Upgrade amqp-client to 5.36.1 or later.
References
- Vendor advisory github.com/rabbitmq/rabbitmq-java-client/secur…
- Patch github.com/rabbitmq/rabbitmq-java-client/pull/…
- Patch github.com/rabbitmq/rabbitmq-java-client/commi…
1 more
- Release notes github.com/rabbitmq/rabbitmq-java-client/relea…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.