Description
The RabbitMQ Java client library allows Java and JVM-based applications to connect to and interact with RabbitMQ nodes. Prior to 5.31.0, inbound AMQP command assembly in src/main/java/com/rabbitmq/client/impl/CommandAssembler.java processes a content-bearing method and header whose remainingBodyBytes value is smaller than a following AMQP.FRAME_BODY payload. CommandAssembler.consumeBodyFrame subtracts the peer-controlled payload length before validating that it fits, drives remainingBodyBytes negative, and throws a raw UnsupportedOperationException instead of MalformedFrameException. A malicious or compromised broker peer can send this malformed sequence on an open nonzero channel to terminate frame processing and close the client connection, causing denial of service for work using that connection. This issue is fixed in version 5.31.0.
Published: 2026-08-18
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from improper validation of AMQP frames in the RabbitMQ Java client’s CommandAssembler component. When a broker sends a content‑bearing method followed by a header whose remainingBodyBytes is smaller than the following frame body payload, the assembler subtracts the payload length before performing bounds checks. This results in a negative remainingBodyBytes value and causes a raw UnsupportedOperationException instead of the expected MalformedFrameException. The flaw is an instance of CWE‑20: Improper Input Validation and can halt client processing.

Affected Systems

The affected product is the RabbitMQ Java client library (rabbitmq:rabbitmq-java-client). Every release prior to 5.31.0, including all 5.30.x versions, is vulnerable. The issue was patched in version 5.31.0 and later.

Risk and Exploitability

The CVSS base score of 6.3 places this vulnerability in the medium severity range. EPSS information is not available and the flaw is not listed in the CISA KEV catalog. The attack requires a broker that can send a specially crafted malformed frame on a channel that remains open and non‑zero. A compromised or malicious broker can exploit this flaw to force the client to throw an exception and close the connection, resulting in a denial of service for applications relying on that connection. The vulnerability is confined to traffic from a broker to the client; outward threats are not applicable.

Generated by OpenCVE AI on August 18, 2026 at 17:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade all client applications to RabbitMQ Java client version 5.31.0 or newer.
  • Update all dependency lock files and build configurations to reference the patched library before deploying or restarting services.
  • Monitor client logs for unexpected UnsupportedOperationException events; if the patch cannot be applied immediately, consider isolating vulnerable clients from untrusted or compromised brokers until the update is completed.

Generated by OpenCVE AI on August 18, 2026 at 17:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qx7j-jv8m-fppr RabbitMQ Java client malformed body frame triggers raw command assembler exception
History

Tue, 18 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Description The RabbitMQ Java client library allows Java and JVM-based applications to connect to and interact with RabbitMQ nodes. Prior to 5.31.0, inbound AMQP command assembly in src/main/java/com/rabbitmq/client/impl/CommandAssembler.java processes a content-bearing method and header whose remainingBodyBytes value is smaller than a following AMQP.FRAME_BODY payload. CommandAssembler.consumeBodyFrame subtracts the peer-controlled payload length before validating that it fits, drives remainingBodyBytes negative, and throws a raw UnsupportedOperationException instead of MalformedFrameException. A malicious or compromised broker peer can send this malformed sequence on an open nonzero channel to terminate frame processing and close the client connection, causing denial of service for work using that connection. This issue is fixed in version 5.31.0.
Title RabbitMQ Java client malformed body frame triggers raw command assembler exception
Weaknesses CWE-20
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T17:43:31.624Z

Reserved: 2026-07-16T14:14:24.385Z

Link: CVE-2026-63335

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T17:17:00.130

Modified: 2026-08-18T17:17:00.130

Link: CVE-2026-63335

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:30:15Z

Weaknesses
  • CWE-20

    Improper Input Validation