{"id":"DHI-mhxb-qp4a-fqvi-kwy4","summary":"## Summary","details":"## Summary\r\n\r\nAn amplification memory-exhaustion denial of service exists in RabbitMQ's AMQP 1.0 type parser. Any client that can complete a SASL handshake (by default guest/guest; any valid low-privilege user in a real deployment — with only vhosts access permissions required) can send a single ~30–128 KB frame that the parser expands into multiple gigabytes of heap. A cap limits the size of any one \"zero-width\" array to 10,000 elements, but there is no aggregate limit on how many such arrays a single frame may contain. The frame is parsed in the connection reader process BEFORE any validation or authorization, and the reader's max_heap_size kill-guard is cleared immediately after authentication — so nothing bounds the allocation. A few tens of KB of traffic trips the node-wide memory alarm (blocking all publishers on the node) and, with a few concurrent frames (~180 KB total), OOM-kills the entire broker. Measured amplification: ~50,000× (30 KB in → ~2.4 GB heap).\r\n\r\n### Details\r\nRoot cause — `deps/amqp10_common/src/amqp10_binary_parser.erl`:\r\n\r\nWhere it detonates (before any validation) — `deps/rabbit/src/rabbit_amqp_reader.erl`:\r\n\r\n```erlang\r\nhandle_frame0(Mode, Channel, Body, State) -\u003e\r\n    Performative = parse_frame_body(Body, Channel),      % line 409 — parse FIRST\r\n    ...                                                  % classification/routing AFTER\r\n\r\nparse_frame_body(Body, _Channel) -\u003e\r\n    {DescribedPerformative, BytesParsed} =\r\n        amqp10_binary_parser:parse(Body),                % line 419 — allocation happens here\r\n    ...\r\n```\r\n\r\nThe parse (and its allocation) runs for every frame body in the reader process; any later rejection by `amqp10_framing:decode` happens only after the memory has already been consumed.\r\n\r\nWhy the reader guard does not help post-auth — `deps/rabbit/src/rabbit_amqp_reader.erl`:\r\n\r\n```erlang\r\n{ok, User} -\u003e\r\n    rabbit_access_control:clear_max_heap_size(),         % line 792 — kill-guard REMOVED\r\n```\r\n\r\nPre-auth, `max_heap_size = 16 MiB (kill=true)` limits damage to a single-connection kill. On SASL success the guard is cleared, so nothing bounds the reader process heap thereafter.\r\n\r\nFrame-size window: post-open, `incoming_max_frame_size = frame_max = 131072` (128 KB), giving ~13,100 arrays/frame ⇒ ~2 GB/frame.\r\n\r\n### PoC\r\n```bash\r\ndocker run -d --name rmq-poc --memory=4g  \\\r\n  -p 5672:5672 -p 15672:15672 rabbitmq:4-management        # =\u003e RabbitMQ 4.3.2, OTP 27\r\n```\r\n\r\nAttack: a raw-socket AMQP 1.0 client (Python stdlib only, attached as `amqp10_bomb.py`) that\r\n(1) does SASL PLAIN as guest, (2) sends open, (3) sends one frame containing an outer list32 of N zero-width null arrays — each `f0 00000005 00002710 40` (array32, count=10000, elem=null).\r\n\r\n# Poc Script:  [amqp10_bomb.py](https://github.com/user-attachments/files/30199208/amqp10_bomb.py)\r\n\r\n```bash\r\n# amplification demo — single frame, node survives:\r\n# crash / node-wide alarm — 3 concurrent 128 KB frames (~180 KB total):\r\npython3 amqp10_bomb.py 13000 3 127.0.0.1 5672 \u003cuser\u003e \u003cpassword\u003e\r\n```\r\nMeasure broker memory in a separate window:\r\n\r\n```bash\r\ndocker stats rmq-poc\r\n```\r\n\r\n### Impact\r\nType: CWE-770 / CWE-400 — Denial of Service (uncontrolled memory allocation).\r\n\r\n- Whole-node crash (OOM) of the broker from a single connection sending tens of KB.\r\n- Node-wide publisher blocking as soon as the memory high-watermark is crossed — degrading availability for ALL tenants/vhosts on the node even without a crash.\r\n- Trivially repeatable; ~50,000× amplification means negligible attacker bandwidth. channel_max / session limits do not help — the allocation is in the connection reader, before session or link handling.\r\n\r\n### Who is impacted: \r\nAny RabbitMQ deployment with the AMQP 1.0 listener enabled (default on 5672 in 4.x) reachable by any authenticated principal — i.e. effectively all network-exposed brokers.","modified":"2026-11-23T22:15:18.256363902Z","published":"2026-11-18T14:50:03Z","upstream":["CVE-2026-67414"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-mhxb-qp4a-fqvi-kwy4"},{"type":"ADVISORY","url":"https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-w6mq-4qpx-v7mh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67414"},{"type":"FIX","url":"https://github.com/rabbitmq/rabbitmq-server/commit/3f0f67dfb7c4390e3cbfa25ab3ee19dcb0845bd4"},{"type":"WEB","url":"https://github.com/rabbitmq/rabbitmq-server/releases/tag/v4.3.4"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-67414"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-67414"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-67414"}],"affected":[{"package":{"name":"rabbitmq-4.3","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/rabbitmq-4.3"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.3.5-0"}]}],"versions":["4.3.5-0","4.3.5-1","4.3.6-0","4.3.6-1","4.3.6-2"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-mhxb-qp4a-fqvi-kwy4.json"}},{"package":{"name":"rabbitmq-4.4-fips","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/rabbitmq-4.4-fips"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4.1-0"}]}],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-mhxb-qp4a-fqvi-kwy4.json","owner_kind":"HSP"}},{"package":{"name":"rabbitmq-4.4","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/rabbitmq-4.4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4.0-0"}]}],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-mhxb-qp4a-fqvi-kwy4.json","owner_kind":"HSP"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}