CVE-2026-77412
ADVISORY - githubSummary
Summary A vulnerability in the readField function allows a malicious or compromised AMQP server to trigger an unhandled runtime panic in the client application, leading to an immediate crash of the entire process.
Details
When parsing incoming AMQP frames, the readField function processes byte-array fields (type tag 'x') by reading a 32-bit big-endian integer to determine the length of the data payload.
// read.go:253-263
case 'x':
var len int32
if err = binary.Read(r, binary.BigEndian, &len); err != nil {
return nil, err
}
value := make([]byte, len) // PANICS if len < 0
If a server transmits a length value of 0xFFFFFFFF, it is interpreted by the client as a signed 32-bit integer with a value of -1. Passing a negative integer to Go's built-in make() function for slice allocation triggers an unrecoverable runtime panic (panic: len out of range).
Because the reader goroutine handles network I/O without an explicit recover() wrapper, this panic propagates up to the runtime root, abruptly terminating the host application.
Attack Vector / Exploitation Scenario An attacker capable of spoofing, compromising, or controlling an AMQP broker can exploit this flaw during two primary phases:
- Connection Establishment: Sending a malicious connection.start handshake frame containing server-properties with an 'x' type field assigned a negative length.
- Message Delivery: Delivering a message payload where the header table contains a malformed field matching the criteria above.
Impact Availability: High. A single malformed frame can reliably crash the client process, resulting in a persistent Denial of Service (DoS) if the client automatically reconnects and receives the same payload.
Common Weakness Enumeration (CWE)
Incorrect Conversion between Numeric Types
Incorrect Conversion between Numeric Types
Buffer Access with Incorrect Length Value
NIST
-
CVSS SCORE
8.9highGitHub
-
CVSS SCORE
8.9highDebian
-
Red Hat
3.9
CVSS SCORE
7.5highminimos
MINI-27r4-65pv-8pgm
-
minimos
MINI-2g4g-97r2-8mfh
-
minimos
MINI-2r75-jwh2-wpjh
-
minimos
MINI-3356-p2g7-vxh9
-
minimos
MINI-362c-92cg-c8f7
-
minimos
MINI-3f6p-mm2c-c8c7
-
minimos
MINI-4gwp-gg3j-2r2v
-
minimos
MINI-4pvx-pjjj-gq52
-
minimos
MINI-5h99-745p-6985
-
minimos
MINI-5j8g-q4gq-g8h7
-
minimos
MINI-7qh4-p2fw-3j2f
-
minimos
MINI-9r4w-6fx3-472m
-
minimos
MINI-9v6f-p64w-37pj
-
minimos
MINI-g9j6-rfw5-9prw
-
minimos
MINI-gcgw-45mj-34hj
-
minimos
MINI-hmjj-pcrf-h4f9
-
minimos
MINI-mjxj-qxrv-xfvr
-
minimos
MINI-r467-rc32-hr5j
-
minimos
MINI-rqq7-p8jh-wh48
-
minimos
MINI-rvfg-hf9x-r42r
-
minimos
MINI-v7qj-6r2w-cg38
-
minimos
MINI-v852-jr5j-xqrj
-
minimos
MINI-vpwh-jrjv-prw5
-