Malformed UTF-8 handling can disable RabbitMQ Java client RPC consumers

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-106122?

CVE-2026-106122 is a vulnerability classified as Encoding Error and Uncaught Exception, affecting rabbitmq-java-client (affected versions: < 5.36.0) and amqp-client (affected versions: < 5.36.0). This vulnerability is rated Medium, with a CVSS score of 6. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

The RabbitMQ Java client library allows Java and JVM-based applications to connect to and interact with RabbitMQ nodes. Prior to 5.36.0, ValueReader.readShortstr decodes malformed UTF-8 bytes into replacement characters that can re-encode beyond the AMQP shortstr limit enforced by ValueWriter.writeShortstr. An attacker who can submit an RPC message with a malformed echoed property can cause reply publication in RpcServer.mainloop() or tutorial-style consumers to throw an unchecked exception before acknowledgement. The broker requeues the message, allowing the same message to disable replacement consumers until the queue is purged. This issue is fixed in version 5.36.0.

Affected products and scope

  • rabbitmq:rabbitmq-java-client: affected versions are < 5.36.0.
  • com.rabbitmq:amqp-client: affected versions are < 5.36.0; the CNA advisory specifies the affected branch as <= 5.35.0 and identifies 5.36.0 as the patched version.
  • The supplied evidence does not establish the status of parallel or other release branches outside these stated boundaries.

Technical details

The flaw is an encoding mismatch in AMQP shortstr handling. ValueReader.readShortstr decodes malformed UTF-8 by substituting U+FFFD replacement characters. When the resulting value is echoed in a reply, ValueWriter.writeShortstr can reject it because its UTF-8 encoding exceeds the shortstr limit and throw an unchecked exception.

The attack precondition is the ability to submit an RPC message containing a malformed shortstr property that the application echoes in its reply. The CNA advisory identifies potentially affected properties including correlation-id, reply-to when used as a routing key, message-id, type, and app-id.

The documented affected paths are RpcServer.mainloop() and the tutorial-style consumer pattern using basicConsume with a DeliverCallback. In the RPC path, the exception can escape the processing loop before acknowledgement; in the callback pattern, it can close the channel. Because acknowledgement is not reached, the broker requeues the message, allowing the same message to reach and disable replacement consumers. The evidence does not establish the scope of other applications beyond these Java or JVM client paths.

Exploitability

The issue is reachable over the network through an RPC service to which the attacker has permission to submit messages. The application must echo the malformed property in its reply, and no user interaction is required.

The supplied record marks a public exploit, and the CNA advisory includes a proof-of-concept description. The advisory also notes that ordinary Java client and pika writers do not reproduce the condition because they encode well-formed UTF-8 or reject oversized strings; the malformed wire data must be produced unusually. The available evidence does not establish exploitation in the wild.

Technical impact

When a malformed property is echoed, the client can throw IllegalArgumentException before acknowledgement. In RpcServer.mainloop(), the exception can stop the processing loop; in a callback-based consumer, it can close the channel. The broker requeues the message, so the same message can repeatedly disrupt replacement consumers until the queue is purged.

The confirmed technical effect is denial of service against the affected RPC or consumer path, not code execution, data disclosure, or data modification. The attacker still needs permission to submit a message to the RPC service and requires an application path that echoes the affected property. The evidence does not establish impact beyond the stated Java or JVM client paths.

Business impact

  • Service interruption: a single RPC message can terminate a consumer loop or close a channel, stopping request processing.
  • Queue processing disruption: because acknowledgement is not sent, the broker requeues the malicious message and the next consumer can encounter the same failure.
  • Operational recovery: the advisory states that the service may remain unavailable until an operator purges the affected queue. This removes the poison message but does not correct the client defect.
  • The record confirms an availability consequence and does not establish confidentiality or integrity loss.

Remediation

  1. Upgrade the RabbitMQ Java client dependency to 5.36.0, the release confirmed by the record and advisory as containing the fix. For Maven deployments, inspect the dependency tree and verify that the artifact actually deployed is the patched com.rabbitmq:amqp-client release.
  2. After upgrading, test the RPC reply path with message properties and verify that a request-processing failure does not terminate the consumer and that acknowledgement and rejection handling operate as intended.
  3. If an immediate upgrade is not possible, monitor RPC queues for requeued messages and stopped consumers. Purging a poisoned queue is the recovery action described by the advisory, but it may remove queued messages and does not fix the client.
  4. No separate vendor workaround is confirmed in the supplied evidence. Restricting permission to submit RPC requests may reduce temporary exposure, but it is not a substitute for upgrading.

Detection

  1. Inventory Java and JVM applications using rabbitmq:rabbitmq-java-client or com.rabbitmq:amqp-client, and confirm the dependency actually loaded at runtime.
  2. Identify consumers using RpcServer.mainloop() or basicConsume callbacks that echo correlationId, replyTo, or other AMQP properties into replies.
  3. Review client logs for an unchecked IllegalArgumentException during reply publication, especially the Short string too long message documented by the advisory.
  4. Check for stopped consumers, closed channels, messages that were not acknowledged, and repeated broker requeue activity. These are consistent symptoms, not unique indicators.
  5. Do not treat the absence of these log events or queue symptoms as proof of safety. Confirm exposure through dependency and deployment checks.
Sources (13)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.