DHI-dlmp-cntb-vste-x56g

Source
https://scout.docker.com/v/DHI-dlmp-cntb-vste-x56g
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-dlmp-cntb-vste-x56g.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-dlmp-cntb-vste-x56g
Upstream
  • GHSA-w4p7-ffvp-qv8g
Published
2026-11-27T12:09:54Z
Modified
2026-11-27T12:15:13Z
Summary
### Summary
Details

Summary

Direct reply-to addresses have the form amq.rabbitmq.reply-to.<encoded-pid>.<key>. The key is the capability that authorises delivery to the reply-to consumer — rabbit_queue_type:handle_event/3 matches on the full resource name, so a wrong key delivers nothing. That key is generated with rabbit_guid:gen/0, whose own docstring states it "should be used when performance is a priority and predictability is not an issue. Otherwise use gen_secure/0."

gen/0 advances a per-process chain by a reversible transform. A party that observes reply-to keys from a given channel or session process can therefore derive keys that the same process generates later, including keys it uses for conversations with other peers.

Note on tooling: this report was prepared with AI assistance (Claude Code). The analysis and the proposed fix were reviewed by the submitter before filing.

Why this is reachable in practice

The reply-to key is not secret from the peer a client addresses — that peer is told the address so it can reply. Predictability matters because it lets that peer derive keys used with different peers.

Two properties make this more than theoretical:

  1. A client can allocate multiple keys on one channel. basic.cancel resets direct_reply = none (rabbit_channel.erl:1391), so cancel-and-re-consume yields a fresh key from the same process and the same chain. Some clients do this per request as normal behaviour.
  2. The chain's other consumer is often attacker-observable. The same per-process chain is advanced by rabbit_classic_queue:deliver/3, once per publish to a classic queue. In the RPC case the attacker is the responder, so it receives those requests and can count them — meaning the step count between two reply-to allocations is frequently visible to exactly the party who benefits from knowing it. I initially assumed this sharing added uncertainty for an attacker; it largely does not.

Impact

A peer that a client sends reply-to addresses to can inject forged replies into that client's other direct reply-to conversations. This is an integrity issue, not a confidentiality one — the key authorises delivery to the consumer, so it permits injection but not reading the victim's traffic. Downstream severity depends on how the client application treats RPC responses.

Preconditions

  • Authenticated account with permission to publish
  • The attacker is a party the victim addresses replies to, or otherwise observes reply-to addresses from the victim's channel
  • The victim allocates a direct reply-to consumer more than once on the same channel or session
  • Shared vhost with at least one other peer for the cross-peer case to have value

Affected code

  • deps/rabbit/src/rabbit_volatile_queue.erl, new_name/0 — 4.2.x, 4.3.x, main
  • deps/rabbit/src/rabbit_direct_reply_to.erl, compute_key_and_suffix_v1/2 — 3.13.x through 4.1.x

Verified present on the v3.13.x, v4.0.x, v4.1.x, v4.2.x, v4.3.x and main branch tips.

Suggested fix

Use rabbit_guid:gen_secure/0 for the key. rabbit_channel already uses it a few lines away when generating the consumer tag, so the asymmetry appears unintentional. new_name/0 runs once per direct reply-to consumer rather than per message, so the extra hashing is not on a hot path.

I have a one-line change plus a regression test for main ready to submit as a PR once you've decided how you'd like to handle this. The test asserts that a key is not derivable from its predecessor; it fails on current main and passes with the change.

Environment

  • RabbitMQ 4.3.5 and 4.3.6, and verified by source inspection on the branch tips listed above
  • Erlang/OTP 29
  • Linux

A note on severity

I am not confident whether this clears your bar for a vulnerability rather than hardening. I first assessed it as hardening on the basis that consecutive keys were hard to obtain, and both halves of that reasoning turned out to be weaker than I thought — hence this report rather than a public PR. If you consider it hardening, I am happy to open the PR publicly instead.

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-dlmp-cntb-vste-x56g.json"