Pre-negotiation frame-limit bypass causes memory exhaustion in RabbitMQ amqp091-go

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-107386?

CVE-2026-107386 is a vulnerability classified as Allocation of Resources Without Limits or Throttling, affecting amqp091-go (affected versions: >= 1.13.0, < 1.14.0). This vulnerability is rated Medium, with a CVSS score of 6.3. Current sources do not report this vulnerability as exploited.

Overview

Original source data

amqp091-go is a Go AMQP 0.9.1 client. From 1.13.0 until 1.14.0, the frame-size mitigation from the prior allocation advisory can be bypassed before connection.tune completes because Connection.maxFrameSize uses zero for both the not-yet-negotiated and negotiated-unlimited states. A malicious or compromised AMQP peer can send a short body-frame header with a large declared payload length, causing ReadFrame and the body-frame parser to allocate attacker-selected memory before the payload is received or the frame's protocol state is rejected. The condition is reachable through public Open even when Config.FrameSize is set to the protocol minimum and can cause severe memory pressure, out-of-memory termination, or loss of the client process before authentication completes. This issue is fixed in version 1.14.0.

Affected products and scope

  • RabbitMQ amqp091-go: affected for >= 1.13.0, < 1.14.0.
  • Confirmed fixed release: 1.14.0.
  • The available record does not establish the status of parallel branches, downstream repackaging, or vendor-integrated deployments that are not directly covered by the stated range.

Technical details

This is a CWE-770 resource-allocation flaw in which the frame parser allocates memory from an AMQP peer-controlled length before a safe limit is enforced during pre-negotiation.

  1. Open starts the reader before connection.tune completes.
  2. Connection.maxFrameSize begins at zero. The reader uses that value for both the not-yet-negotiated state and the negotiated-unlimited state, so it skips the pre-allocation size check.
  3. ReadFrame decodes a peer-controlled uint32 length from the body-frame header, then parseBodyFrame executes make([]byte, size) before io.ReadFull receives the payload or the frame's protocol state is rejected.

The developer advisory states that a short body-frame header can request a very large allocation, with the size selected by the peer. The condition is reachable through public Open, even when Config.FrameSize is set to the protocol minimum. The available evidence does not establish the exact deployment configuration or amount of memory that would be allocated in every environment.

Exploitability

The flaw is reachable over the network through a malicious or compromised AMQP peer that provides the transport during connection establishment. It does not require application credentials or user interaction; the main precondition is that the attacker controls or influences the peer to which the client connects.

The payload does not need to be fully transmitted before allocation occurs, so a header declaring a large length can enter the vulnerable path by itself. The developer advisory includes a safe reproducer that confirms allocation occurs before the payload is read, but the available evidence does not show that a specific deployment has been exploited in practice.

The supplied record marks public exploit as false and does not identify a known exploited campaign. That status does not prove exploitation is impossible.

Technical impact

  • Technical outcome: the client allocates a buffer from a peer-controlled body-frame length before validating the payload or rejecting the frame for its protocol state.
  • Primary effect: reduced or lost client availability through memory exhaustion; dependent services may be interrupted.
  • Privilege and scope: the attacker does not need application credentials or user interaction, but must provide or control the AMQP transport used by the client during connection establishment.
  • Limits: the record does not establish confidentiality or integrity impact, code execution, or a particular victim or deployment that was affected.

Business impact

  • A client may experience severe memory pressure, out-of-memory termination, or process loss, interrupting message publishing, consumption, or processing workloads that depend on the client.
  • If the client is part of a long-running service, process termination may interrupt the AMQP connection and require service restart or recovery. This is a possible operational consequence, not a reported incident.
  • The risk is greater for containers or hosts with tight memory limits, where one abnormal allocation may affect the stability of the process and nearby workloads.
  • The record does not establish unauthorized data access, data modification, privilege gain, or access to the broker.

Remediation

  1. Upgrade to 1.14.0. The record and developer advisory identify this release as fixing the pre-negotiation frame-limit issue.
  2. Rebuild and redeploy applications that link the affected package, and check the dependency lockfile or module graph to confirm that the fixed release is present in the deployed artifact.
  3. If an immediate upgrade is not possible, reduce connections from the client to AMQP peers that are not fully trusted where operationally feasible. This is exposure reduction, not a confirmed fix.
  4. Do not rely on Config.FrameSize at the protocol minimum as an independent workaround, because the advisory confirms that the pre-negotiation Open path can bypass that protection.
  5. No separate vendor-confirmed workaround is provided in the available evidence; residual risk remains until the fixed release is deployed.

Detection

  • Inventory binaries, modules, and dependency manifests that use github.com/rabbitmq/amqp091-go.
  • Compare the resolved version with the affected branch and fixed release in affected_summary; do not treat Config.FrameSize at the protocol minimum as proof of safety.
  • Identify services that call public Open to brokers or peers that are not fully trusted, especially connections that can receive data before authentication completes.
  • Review operational telemetry for memory spikes during the AMQP handshake, out-of-memory termination, process restarts, and repeated connection failures. These are precautionary monitoring checks, not confirmed indicators of compromise.
  • In an isolated test environment, use the advisory's safe regression test to verify that an oversized declared frame is rejected before a payload buffer is allocated.
Sources (12)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.