{"id":"CVE-2026-69220","aliases":["CVE-2026-69220","GHSA-93j5-89vc-pph4"],"related":[],"kind":"vulnerability","state":"published","title":"RabbitMQ Java client ValueReader: Unbounded recursive table/array nesting causes StackOverflowError DoS","summary":"The RabbitMQ Java client library allows Java and JVM-based applications to connect to and interact with RabbitMQ nodes. Prior to 5.33.1, src/main/java/com/rabbitmq/client/impl/ValueReader.java permits ValueReader.readTable and ValueReader.readArray to call ValueReader.readFieldValue recursively for AMQP table type F and AMQP array type A values without a nesting-depth limit. A malicious AMQP server or network intermediary can send approximately 580 nested table levels in the pre-authentication connection.start frame, fitting within the default 131072-byte frame maximum, to trigger StackOverflowError. The error terminates the client input processing thread and causes denial of service. This issue is fixed in version 5.33.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The RabbitMQ Java client library allows Java and JVM-based applications to connect to and interact with RabbitMQ nodes. Prior to 5.33.1, src/main/java/com/rabbitmq/client/impl/ValueReader.java permits ValueReader.readTable and ValueReader.readArray to call ValueReader.readFieldValue recursively for AMQP table type F and AMQP array type A values without a nesting-depth limit. A malicious AMQP server or network intermediary can send approximately 580 nested table levels in the pre-authentication connection.start frame, fitting within the default 131072-byte frame maximum, to trigger StackOverflowError. The error terminates the client input processing thread and causes denial of service. This issue is fixed in version 5.33.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\n`ValueReader.readTable()` and `readArray()` recursively call `readFieldValue()` with no depth limit. A malicious AMQP peer can crash the client JVM by sending a deeply nested table structure.\n\n## Vulnerable Code\n\n`src/main/java/com/rabbitmq/client/impl/ValueReader.java` lines 139-155 and 237-249:\n\n```java\nprivate static Map<String, Object> readTable(DataInputStream in) throws IOException {\n    long tableLength = unsignedExtend(in.readInt());\n    // ...\n    while(tableIn.available() > 0) {\n        String name = readShortstr(tableIn);\n        Object value = readFieldValue(tableIn);  // recursive call\n    }\n}\n\nstatic Object readFieldValue(DataInputStream in) throws IOException {\n    switch(in.readUnsignedByte()) {\n      case 'F': value = readTable(in);  // mutual recursion\n      case 'A': value = readArray(in);  // mutual recursion\n    }\n}\n```\n\n## Attack Scenario\n\nA malicious AMQP server (or MitM) sends a `connection.start` frame with ~580 levels of nested tables. Each level costs ~7 bytes (4-byte length + 1-byte key length + 1-byte key + 1-byte type tag), totaling ~4060 bytes within the 131,072 byte max frame size. With the default JVM stack (~512KB, ~864 bytes/frame), this triggers `StackOverflowError`, killing the I/O thread.\n\nExploitable pre-authentication since `connection.start` is the very first server frame.\n\n## Impact\n\nDenial of service. `StackOverflowError` kills the client I/O thread.\n\n## CWE\n\nCWE-674: Uncontrolled Recursion\n\n## Remediation\n\nAdd a depth counter to `readTable`/`readArray`/`readFieldValue` and throw `MalformedFrameException` when exceeding a threshold (e.g., 32).","format":"markdown","source":"ghsa"},{"lang":"es","text":"La biblioteca cliente Java de RabbitMQ permite que las aplicaciones Java y basadas en JVM se conecten e interactúen con los nodos RabbitMQ. Antes de la versión 5.33.1, src/main/java/com/rabbitmq/client/impl/ValueReader.java permite que ValueReader.readTable y ValueReader.readArray llamen a ValueReader.readFieldValue recursivamente para valores de tipo de tabla AMQP F y de tipo de array AMQP A sin un límite de profundidad de anidamiento. Un servidor AMQP malicioso o un intermediario de red puede enviar aproximadamente 580 niveles de tabla anidados en el marco connection.start de pre-autenticación, que cabe dentro del máximo de marco predeterminado de 131072 bytes, para desencadenar un StackOverflowError. El error termina el hilo de procesamiento de entrada del cliente y causa denegación de servicio. Este problema se corrige en la versión 5.33.1.","source":"nvd"}],"published":"2026-08-18T16:25:16.178Z","modified":"2026-10-22T22:10:00.250Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"version":"< 5.33.1","status":"affected"}],"vendor":"rabbitmq","product":"rabbitmq-java-client","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.33.1"}],"ecosystem":"Maven","package":"com.rabbitmq:amqp-client","purl":"pkg:maven/com.rabbitmq/amqp-client","source":"ghsa"}],"references":[{"url":"https://github.com/rabbitmq/rabbitmq-java-client/security/advisories/GHSA-93j5-89vc-pph4","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rabbitmq/rabbitmq-java-client/pull/2007","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rabbitmq/rabbitmq-java-client/pull/2008","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rabbitmq/rabbitmq-java-client/commit/09af76fce136f3136931654a0a1d43095c80e2f0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rabbitmq/rabbitmq-java-client/commit/db89e34809fbc6ba4e946615f297f3684ccd0acc","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rabbitmq/rabbitmq-java-client/releases/tag/v5.33.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rabbitmq/rabbitmq-java-client","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-18T17:44:35.607Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-69220","url":"https://www.cve.org/CVERecord?id=CVE-2026-69220","licence":"CVE Terms of Use","modified":"2026-08-18T17:45:59.023Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-93j5-89vc-pph4","url":"https://github.com/advisories/GHSA-93j5-89vc-pph4","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:13.771Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-69220","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69220","licence":"Public domain","modified":"2026-10-22T22:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:33.528Z","epss":{"score":0.00399,"percentile":0.36305,"date":"2026-12-01T12:00:22.000Z"}}