{"id":"CVE-2026-77410","aliases":["CVE-2026-77410","GHSA-r9c8-gcjp-xfwh","GO-2026-6500"],"related":[],"kind":"vulnerability","state":"published","title":"RabbitMQ amqp091-go: Resource Exhaustion (OOM) via Unbounded Body Buffer Allocation","summary":"RabbitMQ amqp091-go is a Go AMQP 0.9.1 client. Prior to 1.13.0, Channel.recvContent in channel.go preallocates the message body slice with the uint64 ch.header.Size value supplied by an AMQP content header without capping the allocation to the negotiated Connection.Config.FrameSize value. A malicious or compromised broker can send an extreme declared body size and cause the Go runtime to attempt a correspondingly large allocation before body data is received. The allocation can exhaust memory and terminate the client process. 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, Channel.recvContent in channel.go preallocates the message body slice with the uint64 ch.header.Size value supplied by an AMQP content header without capping the allocation to the negotiated Connection.Config.FrameSize value. A malicious or compromised broker can send an extreme declared body size and cause the Go runtime to attempt a correspondingly large allocation before body data is received. The allocation can exhaust memory and terminate the client process. This issue is fixed in version 1.13.0.","source":"cvelist"},{"lang":"en","text":"**Summary**\nA flaw in the `recvContent` function allows a malicious AMQP server to trigger an Out-of-Memory (OOM) error, forcing the host operating system or container runtime to immediately terminate the client process.\n\n**Vulnerability Details**\nWhen receiving message content payloads, the client processes the expected size from the content header framework. The `recvContent` function attempts to optimize performance by pre-allocating memory for the message body based on the `ch.header.Size` field, which is a 64-bit unsigned integer (`uint64`).\n\n```go\n// channel.go:495-496\nif cap(ch.body) == 0 {\n    ch.body = make([]byte, 0, ch.header.Size)  // unbounded\n}\n```\n\nThe underlying library fails to validate or cap this requested size against any upper boundary—such as the maximum frame size negotiated during connection establishment (`FrameMax`). If a server specifies an extreme body size (e.g., `2^62` bytes), the Go runtime attempts to allocate an exabyte-scale slice capacity. This immediately exhausts available system memory, causing the operating system's OOM killer to terminate the application.\n\n**Attack Vector / Exploitation Scenario**\n\n- Message Delivery Phase: A malicious or compromised AMQP broker sends a standard `basic.deliver` frame containing a content header with an intentionally inflated `body-size` variable.\n- Authentication Requirement: No special privileges or authentication bypasses are required; the crash occurs seamlessly during normal message consumption.\n\n**Impact**\n\n- Availability: High. Exploded memory consumption results in an instant process termination, destroying application state and availability for all threads sharing the environment.","format":"markdown","source":"ghsa"},{"lang":"en","text":"RabbitMQ amqp091-go: Resource Exhaustion (OOM) via Unbounded Body Buffer Allocation in github.com/rabbitmq/amqp091-go","format":"markdown","source":"go"}],"published":"2026-09-16T14:39:08.872Z","modified":"2026-10-01T20:56:22.805Z","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-789"],"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-r9c8-gcjp-xfwh","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/rabbitmq/amqp091-go/pull/346","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/rabbitmq/amqp091-go/commit/91b65fa0096a99a580cf51a31b24028ff1c60382","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-77410","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":"no","technicalImpact":"partial","date":"2026-09-16T15:40:59.489Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77410","url":"https://www.cve.org/CVERecord?id=CVE-2026-77410","licence":"CVE Terms of Use","modified":"2026-09-16T15:41:15.593Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r9c8-gcjp-xfwh","url":"https://github.com/advisories/GHSA-r9c8-gcjp-xfwh","licence":"CC-BY-4.0","modified":"2026-10-01T20:56:22.805Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6500","url":"https://pkg.go.dev/vuln/GO-2026-6500","licence":"CC-BY-4.0","modified":"2026-10-01T20:45:11.275Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77410","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77410","licence":"Public domain","modified":"2026-09-23T18:19:19.803Z"}],"updatedAt":"2026-11-25T22:59:39.060Z","epss":{"score":0.00412,"percentile":0.37499,"date":"2026-12-01T12:00:22.000Z"}}