{"id":"CVE-2026-77412","aliases":["CVE-2026-77412","GHSA-4v58-74mf-rjx3","GO-2026-6494"],"related":[],"kind":"vulnerability","state":"published","title":"RabbitMQ amqp091-go: Denial of Service via Malicious Field Length in AMQP Client","summary":"RabbitMQ amqp091-go is a Go AMQP 0.9.1 client. Prior to 1.13.0, readField in read.go reads the length of an AMQP byte-array field with type tag x into a signed int32 and passes the value directly to make when allocating the field buffer. A malicious or compromised broker can encode a value such as 0xFFFFFFFF, which becomes -1 and causes a len out of range runtime panic. The panic escapes the network reader goroutine and terminates the client process, including during connection.start server properties or message header table parsing. This issue is fixed in version 1.13.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"RabbitMQ amqp091-go is a Go AMQP 0.9.1 client. Prior to 1.13.0, readField in read.go reads the length of an AMQP byte-array field with type tag x into a signed int32 and passes the value directly to make when allocating the field buffer. A malicious or compromised broker can encode a value such as 0xFFFFFFFF, which becomes -1 and causes a len out of range runtime panic. The panic escapes the network reader goroutine and terminates the client process, including during connection.start server properties or message header table parsing. This issue is fixed in version 1.13.0.","source":"cvelist"},{"lang":"en","text":"**Summary**\nA 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.\n\n**Details**\nWhen 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.\n\n```go\n// read.go:253-263\ncase 'x':\n    var len int32\n    if err = binary.Read(r, binary.BigEndian, &len); err != nil {\n        return nil, err\n    }\n    value := make([]byte, len)  // PANICS if len < 0\n```\n\nIf 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).\n\nBecause 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.\n\n**Attack Vector / Exploitation Scenario**\nAn attacker capable of spoofing, compromising, or controlling an AMQP broker can exploit this flaw during two primary phases:\n\n1. Connection Establishment: Sending a malicious connection.start handshake frame containing server-properties with an 'x' type field assigned a negative length.\n2. Message Delivery: Delivering a message payload where the header table contains a malformed field matching the criteria above.\n\n**Impact**\nAvailability: 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"RabbitMQ amqp091-go: Denial of Service via Malicious Field Length in AMQP Client in github.com/rabbitmq/amqp091-go","format":"markdown","source":"go"}],"published":"2026-09-16T14:43:46.302Z","modified":"2026-10-01T20:55:54.975Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H","score":8.9,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H","score":8.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H","rating":"HIGH"}],"cwes":["CWE-681"],"affected":[{"ranges":[{"version":"< 1.13.0","status":"affected"}],"vendor":"rabbitmq","product":"amqp091-go","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.13.0"}],"ecosystem":"Go","package":"github.com/rabbitmq/amqp091-go","purl":"pkg:golang/github.com/rabbitmq/amqp091-go","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.13.0"}],"ecosystem":"Go","package":"github.com/rabbitmq/amqp091-go","purl":"pkg:golang/github.com/rabbitmq/amqp091-go","source":"go"}],"references":[{"url":"https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-4v58-74mf-rjx3","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/rabbitmq/amqp091-go/pull/344","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/rabbitmq/amqp091-go/commit/669b42bf7b1db76bc6d4973e3634247f680accbf","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77412","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/rabbitmq/amqp091-go","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-16T15:05:07.698Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77412","url":"https://www.cve.org/CVERecord?id=CVE-2026-77412","licence":"CVE Terms of Use","modified":"2026-09-16T15:05:14.135Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4v58-74mf-rjx3","url":"https://github.com/advisories/GHSA-4v58-74mf-rjx3","licence":"CC-BY-4.0","modified":"2026-10-01T20:55:54.975Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6494","url":"https://pkg.go.dev/vuln/GO-2026-6494","licence":"CC-BY-4.0","modified":"2026-10-01T20:45:11.239Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77412","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77412","licence":"Public domain","modified":"2026-09-23T18:19:19.803Z"}],"updatedAt":"2026-11-25T22:59:39.061Z","epss":{"score":0.00412,"percentile":0.37477,"date":"2026-12-02T12:00:21.000Z"}}