RabbitMQ amqp091-go: Denial of Service via Sub-Spec Frame Size NegotiationGHSA-xwwf-m8fg-p9q2
Fix: rabbitmq/amqp091-go#353GHSA-xwwf-m8fg-p9q2 is a CWE-770 vulnerability in github.com/rabbitmq/amqp091-go. A fix is available for github.com/rabbitmq/amqp091-go — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-xwwf-m8fg-p9q2.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
github.com/rabbitmq/amqp091-goReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Summary
A Denial of Service (DoS) vulnerability exists in the AMQP client's connection negotiation logic. The AMQP specification explicitly mandates a strict minimum frame size of 4096 bytes to prevent pathological packet fragmentation. While the library defines a frameMinSize = 4096 constant, the connection negotiation loop fails to enforce this boundary, blindly accepting whatever maximum frame size (FrameMax) the server advertises during the handshake.
If a client connects to a malicious or compromised AMQP broker that advertises an extremely low FrameMax (such as 1 byte), the negotiation succeeds. Consequently, every subsequent message transmission is forced to splinter into thousands or millions of single-byte frames, causing massive CPU overhead, thread contention, and a near-instantaneous application freeze.
Vulnerability Details
Mechanism
During the connection establishment phase, the client and server negotiate connection parameters—including maximum channel count, heartbeat intervals, and maximum frame sizes. The vulnerability is located where the client accepts the server's tuning parameters:
// Connection negotiation logic maps server values directly without validation
if serverSettings.FrameMax > 0 {
// VULNERABILITY: Lacks a floor validation check against frameMinSize (4096)
c.config.FrameMax = serverSettings.FrameMax
}
Because there is no conditional check asserting that serverSettings.FrameMax >= frameMinSize, a value below the protocol specification floor is successfully registered. When the application later passes data payloads to the frame writer, the chunking algorithm splits the payload using the negotiated FrameMax value as its chunk window divisor.
Impact
When FrameMax is set to an absurdly low threshold (e.g., 1 to 10 bytes):
- A standard 10 KiB message payload requires tens of thousands of individual write operations and frame headers.
- The system's CPU becomes entirely bound by frame serialization, memory allocation for frame structures, and context switching within the network output loops.
- This results in an application-layer Denial of Service (DoS) affecting not just the specific AMQP connection, but potentially the entire host system due to CPU resource starvation.
Attack Vector
An attacker who compromises an upstream AMQP broker, performs a Man-in-the-Middle (MitM) interception, or tricks an application into connecting to an unauthorized external rogue broker can trigger this vulnerability:
- Rogue Handshake: The client application connects to an AMQP endpoint controlled by the attacker.
- Malicious Parameter Tuning: During the
connection.tunephase, the rogue server returns aFrameMaxvalue of1. - Resource Exhaustion Trigger: The client completes the handshake successfully. As soon as the client attempts to publish a message or process traffic, the internal loop fragments the data into single-byte frames, spiking the host's CPU usage to 100% and disabling the application thread.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/rabbitmq/amqp091-go | all versions | 1.13.0go get github.com/rabbitmq/amqp091-go@v1.13.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/rabbitmq/amqp091-go, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/rabbitmq/amqp091-go to 1.13.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-xwwf-m8fg-p9q2 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is rated as having Moderate impact for Red Hat environments because successful exploitation requires connecting to an untrusted or compromised AMQP broker, which is an uncommon prerequisite in standard managed cluster deployments. Red Hat services and operators utilizing this Go client typically…
To mitigate this issue, ensure that applications using the RabbitMQ amqp091-go client only connect to trusted AMQP brokers. Restrict network access for clients to only communicate with known, secure broker instances. This reduces the risk of a malicious or compromised broker exploiting the client's vulnerability during frame size negotiation.Source: Red Hat security advisory for GHSA-xwwf-m8fg-p9q2 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Hardened Images | opentelemetry-collector-contrib-main-0.161.0-0.1.hum1 | RHSA-2026:68290 |
| Red Hat Quay 3.10 | quay/quay-rhel8:1791462428 | RHSA-2026:79366 |
| Red Hat Quay 3.12 | quay/quay-rhel8:1791314514 | RHSA-2026:79546 |
| Red Hat Quay 3.9 | quay/quay-rhel8:1790808443 | RHSA-2026:77656 |
Frequently Asked Questions
Is GHSA-xwwf-m8fg-p9q2 in your dependencies?
Find it across Go, including transitive dependencies.