CVE-2026-106121

Description

A flaw was found in the RabbitMQ Java client library. When parsing incoming JSON-formatted messages, the built-in parser fails to terminate correctly if an input ends abruptly within an unclosed string or comment. A remote attacker could send a specially crafted, truncated message to trigger an infinite processing loop or exhaust available memory. This behavior can render the affected service unresponsive, resulting in a Denial of Service (DoS).

Statement

A MODERATE severity denial of service flaw was found in the RabbitMQ Java client library (com.rabbitmq/amqp-client), which is included in Red Hat JBoss Fuse and Red Hat build of Apache Camel. The built-in JSON parser com.rabbitmq.tools.json.JSONReader.read() does not terminate when its input ends inside an unterminated quoted string or a // line comment, because its string and whitespace scanners do not stop at CharacterIterator.DONE. When the default DefaultJsonRpcMapper passes such a truncated JSON-RPC message body to the parser, an unterminated string causes unbounded memory allocation that exhausts the JVM heap (OutOfMemoryError), while an unterminated line comment pins a thread consuming CPU indefinitely. A remote attacker able to publish a specially crafted, truncated message to a JSON-RPC request queue, or a malicious JSON-RPC service replying to a client, can render the affected JVM application unresponsive. Only applications that use the JSON-RPC-over-AMQP tooling (com.rabbitmq.tools.jsonrpc) with the default mapper are affected. Red Hat rates this flaw MODERATE (CVSS 6.5, AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H); the higher NIST score of 7.5 (IMPORTANT) differs mainly in Privileges Required, as exploitation generally requires an attacker with credentials sufficient to publish messages to the target queue. In Red Hat build of Apache Camel (rhboac-camel-quarkus-3), the fix is deferred because Red Hat does not file trackers for MODERATE severity flaws with a CVSS score below 7.0; the residual risk is continued exposure to remote denial of service in applications that use the JSON-RPC tooling with the default mapper. The Red Hat JBoss Fuse fuse-7-els-2 affect is out of support scope and will not receive a fix.

Mitigation

Applications using the JSON-RPC-over-AMQP tooling can avoid the vulnerable default parser by explicitly supplying a non-default JSON-RPC mapper, such as the JacksonJsonRpcMapper recommended upstream, when constructing JsonRpcServer or JsonRpcClient: the vulnerable DefaultJsonRpcMapper and its JSONReader parser are only used when no mapper is passed. Exposure can additionally be reduced by restricting which accounts are permitted to publish to JSON-RPC request queues. The upstream project fixed the parser in amqp-client 5.37.0; the affected Red Hat streams are currently deferred or out of support scope and do not provide a fixed package.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score6.57.54.9
Attack VectorNetworkNetworkNetwork
Attack ComplexityLowLowLow
Privileges RequiredLowNoneHigh
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityNoneNoneNone
Integrity ImpactNoneNoneNone
Availability ImpactHighHighHigh

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

cve.org: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Amplification

An infinite loop will cause unexpected consumption of resources, such as CPU cycles or memory. The software's operation may slow down, or cause a long time to respond.

Frequently Asked Questions

Want to get errata notifications? Sign up here.