CVE-2026-77411: RabbitMQ amqp091-go Protocol Desynchronization And Frame Injection Vulnerability
CRITICALCVE-2026-77411 is a CRITICAL protocol desynchronization and frame injection vulnerability (CWE-754: Improper Check for Unusual or Exceptional Conditions) affecting RabbitMQ amqp091-go libraries in the Go ecosystem. The issue involves protocol desynchronization and frame injection via integer overflow in readlongstr. Remediation is available by upgrading affected packages to version 1.13.0.
CVE-2026-77411 at a Glance
How to Fix CVE-2026-77411
To remediate this vulnerability, upgrade all affected RabbitMQ amqp091-go dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/rabbitmq/amqp091-go to 1.13.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/rabbitmq/amqp091-go
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-77411, inspect your project dependencies for RabbitMQ amqp091-go:
inspect dependencies for github.com/rabbitmq/amqp091-go
Analyze the terminal output to locate any version of RabbitMQ amqp091-go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions, where the product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product. In RabbitMQ amqp091-go, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-77411 Affected RabbitMQ amqp091-go Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/rabbitmq/amqp091-go
|
Go |
< 1.13.0
|
1.13.0
|
References
Frequently Asked Questions
What is CVE-2026-77411?
Which RabbitMQ amqp091-go versions are affected?
What version fixes CVE-2026-77411?
Is github.com/rabbitmq/amqp091-go affected?
What CWE is associated with CVE-2026-77411?
How can I check Go dependencies for CVE-2026-77411?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c5pq-fr2g-9jpf",
"modified" : "2026-09-17T17:04:25Z",
"published" : "2026-09-17T17:04:25Z",
"aliases" : [ "CVE-2026-77411" ],
"summary" : "RabbitMQ amqp091-go: Protocol Desynchronization and Frame Injection via Integer Overflow in readLongstr",
"details" : "**Summary**\n\nA 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.\n\n**Vulnerability Details**\n\nThe vulnerability exists within the bounds-checking logic of the readLongstr function:\n```go\n// read.go:113-114 — silent no-op return, bytes left in stream\nif length > (^uint32(0) >> 1) {\n return // returns \"\", nil, does NOT consume `length` bytes\n}\n```\nWhen `length` evaluates to a value greater than `0x7FFFFFFF`:\n\n1. The function executes a silent `return` statement.\n2. Because Go utilizes named or zero-value initialization for unassigned return registers, this yields `\"\", nil` (indicating a successful read of an empty string).\n3. The Critical Failure: The reader's cursor is not advanced by `length` bytes. The malformed payload remains sitting in the TCP/buffer stream.\n\n**Impact**\n\nAs `readTable` continues iterating over the stream under the assumption that the string was successfully parsed, the byte alignment is entirely broken.\n\n- Parser Desynchronization: Future AMQP frame headers are read from arbitrary offsets inside the attacker-controlled message payload.\n- Payload Reinterpretation: A malicious actor can carefully craft the trailing bytes of the initial payload to perfectly mimic valid AMQP frames (e.g., `connection.close`, `channel.open`, or message publishing frames), forcing the client/server to execute unintended actions.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rabbitmq/amqp091-go"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.13.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-c5pq-fr2g-9jpf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-77411"
}, {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/amqp091-go/pull/347"
}, {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/amqp091-go/commit/143c1ace5fa7344cee135e5c7d22970f0de68282"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rabbitmq/amqp091-go"
}, {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-754" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-17T17:04:25Z",
"nvd_published_at" : "2026-09-16T15:17:50Z"
}
}