DHI-mhxb-qp4a-fqvi-kwy4

Source
https://scout.docker.com/v/DHI-mhxb-qp4a-fqvi-kwy4
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-mhxb-qp4a-fqvi-kwy4.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-mhxb-qp4a-fqvi-kwy4
Upstream
Published
2026-11-18T14:50:03Z
Modified
2026-11-23T22:15:18Z
Severity
  • 6.0 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
## Summary
Details

Summary

An 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).

Details

Root cause — deps/amqp10_common/src/amqp10_binary_parser.erl:

Where it detonates (before any validation) — deps/rabbit/src/rabbit_amqp_reader.erl:

handle_frame0(Mode, Channel, Body, State) ->
    Performative = parse_frame_body(Body, Channel),      % line 409 — parse FIRST
    ...                                                  % classification/routing AFTER

parse_frame_body(Body, _Channel) ->
    {DescribedPerformative, BytesParsed} =
        amqp10_binary_parser:parse(Body),                % line 419 — allocation happens here
    ...

The 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.

Why the reader guard does not help post-auth — deps/rabbit/src/rabbit_amqp_reader.erl:

{ok, User} ->
    rabbit_access_control:clear_max_heap_size(),         % line 792 — kill-guard REMOVED

Pre-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.

Frame-size window: post-open, incoming_max_frame_size = frame_max = 131072 (128 KB), giving ~13,100 arrays/frame ⇒ ~2 GB/frame.

PoC

docker run -d --name rmq-poc --memory=4g  \
  -p 5672:5672 -p 15672:15672 rabbitmq:4-management        # => RabbitMQ 4.3.2, OTP 27

Attack: a raw-socket AMQP 1.0 client (Python stdlib only, attached as amqp10_bomb.py) that (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).

Poc Script: amqp10_bomb.py

# amplification demo — single frame, node survives:
# crash / node-wide alarm — 3 concurrent 128 KB frames (~180 KB total):
python3 amqp10_bomb.py 13000 3 127.0.0.1 5672 <user> <password>

Measure broker memory in a separate window:

docker stats rmq-poc

Impact

Type: CWE-770 / CWE-400 — Denial of Service (uncontrolled memory allocation).

  • Whole-node crash (OOM) of the broker from a single connection sending tens of KB.
  • 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.
  • 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.

Who is impacted:

Any 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.

References

Affected packages

Docker Hardened Images:Debian:13 / rabbitmq-4.3

Package

Name
rabbitmq-4.3
Purl
pkg:deb/dhi/rabbitmq-4.3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.3.5-0

Affected versions

4.*
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"

Docker Hardened Images:Debian:13 / rabbitmq-4.4-fips

Package

Name
rabbitmq-4.4-fips
Purl
pkg:deb/dhi/rabbitmq-4.4-fips

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.4.1-0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-mhxb-qp4a-fqvi-kwy4.json"

Docker Hardened Images:Debian:13 / rabbitmq-4.4

Package

Name
rabbitmq-4.4
Purl
pkg:deb/dhi/rabbitmq-4.4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.4.0-0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-mhxb-qp4a-fqvi-kwy4.json"