llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Maven · com.rabbitmq:amqp-client

GHSA-QQRJ-C65F-8QM9

The CVE-2026-106121 fix is incomplete: `JSONReader`'s recursive descent still has no depth bound — ~4000 nested arrays/objects throw an uncatchable `StackOverflowError` through the JSON-RPC server

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS 3.1
4.9
Media
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición3 dDesde la divulgación, 17 nov 2026, 11:40 a. m.
Detección2 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 5.38.0
Monitoreo
Detectada +1
17 nov 26
20 nov 26
21 nov 26
17 nov 26
18 nov 26
19 nov 26
20 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-QQRJ-C65F-8QM9 divulgada · CVSS 4.9 (GitHub)
Remediación Parche 5.38.0 com.rabbitmq:amqp-client · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

The fix for CVE-2026-106121 (GHSA-cqgh-8p3p-mx4m, "JSONReader in the default JSON-RPC mapper never terminates") added `CharacterIterator.DONE` bounds to the string-scan and comment/space-skip loops — both original vectors now fail fast (verified: unterminated strings no longer OOM, `//` comments no longer spin CPU). The recursive-descent structure was left unbounded: `JSONReader.read()` / `array()` / `object()` (`com/rabbitmq/tools/json/JSONReader.java:103/106/125/151/167` in the maintained 5.x branch) call each other with no depth limit — the sibling `ValueReader` enforces `MAX_FIELD_VALUE_NESTING_DEPTH = 32`, this file has zero depth tracking.

A JSON-RPC request whose parameters contain ~4000 nested arrays reaches the recursion limit:

  • `DefaultJsonRpcMapper.parse` (`JsonRpcMapper.java:42/52`) invokes `JSONReader.read()`;
  • `JsonRpcServer.doCall` (`JsonRpcServer.java:188`) catches only `RuntimeException` — `StackOverflowError` is an `Error` and escapes every handler, propagating through `RpcServer.mainloop` (`:132`) and killing the connection-handling thread.

Proof of concept

Measured against the released `amqp-client-5.37.0` and `5.37.1` jars (post-fix line):

  • 8000-deep nested array payload (`"[[[[...]]]]"`) → `StackOverflowError` at the published-jar level;
  • driven through the real `JsonRpcServer.doCall` path, the throw escapes the `catch (RuntimeException)` at ~4000 levels and terminates the thread;
  • harness in the audit directory (`harness/`), timing/thread-dump evidence included.

Contrast controls: the two fixed vectors (unterminated string, unterminated comment) terminate in milliseconds on the same build.

Affected version

rabbitmq-java-client 5.37.x (the CVE-2026-106121 fixed release); `main` (6.0.0.M1-SNAPSHOT) removed the legacy JSON tools in 2018, so 5.x maintenance line is the affected surface.

Impact

Unauthenticated (broker-authorised) CPU/availability DoS of the JSON-RPC over AMQP bridge: any client that can invoke a JSON-RPC method can submit a deeply nested payload and kill the server-side handling thread with an uncatchable `Error`. Same reachability and severity band as the accepted CVE-2026-106121 (CVSS 4.9).

Suggested CVSS 3.1: `AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H` = 4.9 Medium (parity with the accepted advisory).

Remediation

Add a nesting-depth counter to `JSONReader.read()` (mirroring `ValueReader.MAX_FIELD_VALUE_NESTING_DEPTH = 32`) and throw a `RuntimeException` (mapped to a JSON-RPC error) beyond it; additionally consider catching `Throwable` at the `JsonRpcServer.doCall` boundary so no `Error` can escape into the connection thread.

Dedup

GHSA-cqgh-8p3p-mx4m / CVE-2026-106121 fixed the two iteration loops (string/comment) — verified effective with no bypass across 44 adversarial cases. This report is the same parse path's recursive-descent depth, untouched by the fix. All 11 published advisories for the repo are excluded; RPC mapper family (Jackson/Gson), protocol framing, and TLS surfaces audited clean.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:H
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
com.rabbitmq:amqp-client≤ 5.37.1
5.37.1
5.38.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
mavencom.rabbitmq:amqp-client
Corregida 5.38.0 0 d 5.38.0 no afectada
Versiones corregidas5.38.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/rabbitmq/rabbitmq-java-client/security/advisories/GHSA-qqrj-c65f-8qm9

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.