RabbitMQ amqp091-go: Resource Exhaustion (OOM) via Unbounded Body Buffer AllocationGHSA-r9c8-gcjp-xfwh
Fix: rabbitmq/amqp091-go#346GHSA-r9c8-gcjp-xfwh is a CWE-789 vulnerability in github.com/rabbitmq/amqp091-go. A fix is available for github.com/rabbitmq/amqp091-go — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-r9c8-gcjp-xfwh.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
github.com/rabbitmq/amqp091-goReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Summary
A 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.
Vulnerability Details
When 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).
// channel.go:495-496
if cap(ch.body) == 0 {
ch.body = make([]byte, 0, ch.header.Size) // unbounded
}
The 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.
Attack Vector / Exploitation Scenario
- Message Delivery Phase: A malicious or compromised AMQP broker sends a standard
basic.deliverframe containing a content header with an intentionally inflatedbody-sizevariable. - Authentication Requirement: No special privileges or authentication bypasses are required; the crash occurs seamlessly during normal message consumption.
Impact
- Availability: High. Exploded memory consumption results in an instant process termination, destroying application state and availability for all threads sharing the environment.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/rabbitmq/amqp091-go | all versions | 1.13.0go get github.com/rabbitmq/amqp091-go@v1.13.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/rabbitmq/amqp091-go, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/rabbitmq/amqp091-go to 1.13.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-r9c8-gcjp-xfwh is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is rated as having an Important severity for Red Hat products because an untrusted or rogue messaging broker can remotely force client services into an out-of-memory crash, resulting in a denial of service without requiring client-side privileges. In typical Red Hat deployments, AMQP clients connect…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Hardened Images | opentelemetry-collector-contrib-main-0.161.0-0.1.hum1 | RHSA-2026:68290 |
| Red Hat Quay 3.10 | quay/quay-rhel8:1791462428 | RHSA-2026:79366 |
| Red Hat Quay 3.12 | quay/quay-rhel8:1791314514 | RHSA-2026:79546 |
| Red Hat Quay 3.9 | quay/quay-rhel8:1790808443 | RHSA-2026:77656 |
Frequently Asked Questions
Is GHSA-r9c8-gcjp-xfwh in your dependencies?
Find it across Go, including transitive dependencies.