GHSA-xwwf-m8fg-p9q2: Go/github.com/rabbitmq/amqp091-go vulnerability

Published Sep 17, 2026
·
Updated

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:

go // 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:

1. Rogue Handshake: The client application connects to an AMQP endpoint controlled by the attacker. 2. Malicious Parameter Tuning: During the connection.tune phase, the rogue server returns a FrameMax value of 1. 3. 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 Software

1 affected componentFixes available
go/github.com/rabbitmq/amqp091-go<1.13.0
1.13.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/rabbitmq/amqp091-go to a version that resolves this vulnerability.

    Fixed in 1.13.0
  2. Configuration

    Add a validation check during connection.tune negotiation so the client rejects/applies only serverSettings.FrameMax values that are not below the protocol floor: ensure serverSettings.FrameMax >= frameMinSize where frameMinSize is 4096; do not set c.config.FrameMax to an absurdly low FrameMax (e.g., 1–10 bytes) received from the server.

    AMQP client connection negotiation logic FrameMax floor validation (frameMinSize) = enforce serverSettings.FrameMax >= frameMinSize (4096)
  3. Compensating control

    Prevent the AMQP client from connecting to rogue/upstream-compromised brokers by restricting broker endpoints (e.g., allowlisted hosts) and/or isolating AMQP egress so MitM or unauthorized external AMQP endpoints cannot be reached.

Event History

Sep 17, 2026
Advisory Published
via GitHub·05:03 PM
Data Sourced
via GitHub·05:03 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Applications using the AMQP client are exposed when they connect to a malicious or compromised AMQP broker that advertises an abnormally small maximum frame size during connection negotiation.

2

What does an attacker need to do to trigger the denial of service?

The broker must advertise an extremely low FrameMax value, such as 1 byte, during the AMQP handshake. The client accepts that value and then fragments later message transmissions into very large numbers of tiny frames.

3

When does the application impact occur?

Negotiation itself succeeds; the severe CPU overhead and thread contention occur on subsequent message transmission. Sending messages after accepting a tiny FrameMax can cause a near-immediate application freeze.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203