Skip to content
Heist/ feed
CriticalFix available

RabbitMQ amqp091-go: Protocol Desynchronization and Frame Injection via Integer Overflow in readLongstr

Type: advisorySource: OSV1 source record

**Summary** A critical stream desynchronization vulnerability has been identified in the AMQP wire-protocol parser. When parsing a long string (`readLongstr`) within a table field, providing a length that exceeds the maximum signed 32-bit integer (`2^31 - 1`, or roughly `2.1` GiB) triggers an improper error-handling condition. The parser abruptly aborts the read and returns a success status (`"",nil`) without consuming the specified bytes from the underlying network buffer. This causes all subsequent read operations to become misaligned. The parser interprets arbitrary offsets within the remaining payload bytes as valid AMQP frame headers, leading to potential Remote Code Execution (RCE), data injection, or complete connection hijacking. **Vulnerability Details** The vulnerability exists within the bounds-checking logic of the readLongstr function: ```go // read.go:113-114 — silent no-op return, bytes left in stream if length > (^uint32(0) >> 1) { return // returns "", nil, does NOT consume `length` bytes } ``` When `length` evaluates to a value greater than `0x7FFFFFFF`: 1. The function executes a silent `return` statement. 2. Because Go utilizes named or zero-value initialization for unassigned return registers, this yields `"", nil` (indicating a successful read of an empty string). 3. The Critical Failure: The reader's cursor is not advanced by `length` bytes. The malformed payload remains sitting in the TCP/buffer stream. **Impact** As `readTable` continues iterating ove

Announced Source revision 1
Original source ↗

GHSA-c5pq-fr2g-9jpf

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-c5pq-fr2g-9jpf

github.com/rabbitmq/amqp091-go

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
1.13.0

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "1.13.0"
          }
        ]
      }
    ],
    "package": {
      "name": "github.com/rabbitmq/amqp091-go",
      "purl": "pkg:golang/github.com/rabbitmq/amqp091-go",
      "ecosystem": "Go"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-c5pq-fr2g-9jpf/GHSA-c5pq-fr2g-9jpf.json"
    }
  }
]
Related CVEs
CVE-2026-77411

Source reference: /aliases

Publisher severity

critical

Source reference: /database_specific/severity

Event
#63943 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement