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
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
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.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
mavencom.rabbitmq:amqp-client |
Corregida | 5.38.0 | 0 d | 5.38.0 no afectada |
5.38.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/rabbitmq/rabbitmq-java-client/security/advisories/GHSA-qqrj-c65f-8qm9Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
