Skip to main content

rabbitmq-c CVE-2026-61547

| EUVDEUVD-2026-121281 CRITICAL
Out-of-bounds Write (CWE-787)
2026-11-10 GitHub_M
9.8
CVSS 3.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    App passes untrusted body length to amqp_send_frame()
  2. Delivery
    Oversized AMQP_FRAME_BODY bypasses missing bounds check
  3. Exploit
    amqp_frame_to_bytes() memcpy exceeds 65536-byte heap buffer
  4. Execution
    Heap out-of-bounds write
  5. Impact
    Process crash and memory corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the application to use the low-level public amqp_send_frame() API (the higher-level publishing API is noted as unaffected because it splits bodies into valid frame-sized chunks) and to construct an AMQP_FRAME_BODY whose payload.body_fragment.len exceeds the connection outbound buffer capacity (default 65536 bytes / AMQP_DEFAULT_FRAME_SIZE). The flaw triggers in-process during frame serialization, before any socket write, so an attacker must be able to influence the body-fragment length reaching that API. Limiting factors: only rabbitmq-c <=0.16.0 is affected (fixed in 0.17.0); applications that use only the high-level publish path or that validate body lengths are not exposed; no special broker or network conditions are required because the bug is local to the library caller.

Impact

The input CVSS 3.0 base score of 9.8 (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H) rates this as critical and remotely exploitable, but that rating is in tension with the advisory's own text, which explicitly states the issue 'is reproducible locally and occurs before any network communication with a RabbitMQ broker' and that 'the crash occurs locally during frame serialization before any socket write.' This is a client-library API-robustness flaw, not a remotely reachable broker bug: it only fires when a consuming application calls the low-level public amqp_send_frame() API with an attacker-influenced or unvalidated AMQP_FRAME_BODY whose length exceeds the outbound buffer, so the true attack surface is mediated entirely by how each downstream application uses the library - verify exploitability per application. Demonstrated impact is a heap out-of-bounds write causing process termination; broader memory corruption or code execution is noted as possible but is not demonstrated in the sources, so the AV:N and C:H/I:H claims should be treated as conservative-worst-case rather than confirmed. Exploitation status: no public exploit identified as weaponized, but a detailed, reproducible proof-of-concept (with AddressSanitizer output) is published inside the GHSA advisory. The vuln.today Decision label is act_now and a patch (0.17.0) is available, so remediation should not be deferred; however, no EPSS score is provided and the CVE is not in CISA KEV, and the high CVSS is driven by an AV:N assumption the advisory's description does not support, so real-world priority is better characterized as 'patch promptly, especially where the low-level frame API handles untrusted input' rather than an internet-wide mass-exploitation emergency.

Exploit ScenarioDerived

An application built on rabbitmq-c that uses the low-level amqp_send_frame() API to send AMQP_FRAME_BODY frames, where the body fragment length is derived from untrusted or insufficiently validated input, constructs a body larger than the 65536-byte outbound buffer. When amqp_send_frame() serializes it, amqp_frame_to_bytes() performs a memcpy() of the oversized length into the heap buffer, writing out of bounds and crashing the process. A reproducible proof-of-concept demonstrating the heap-buffer-overflow (confirmed via AddressSanitizer) is published in the GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 10, 2026

Heap out-of-bounds write in rabbitmq-c 0.16.0 and earlier is reachable only through the low-level public amqp_send_frame() API: when an application constructs an AMQP_FRAME_BODY whose payload.body_fragment.len exceeds the connection outbound buffer (65536 bytes by default), amqp_frame_to_bytes() memcpy's the full fragment length past the end of the heap allocation, causing a crash and memory corruption before any socket write occurs. The supplied CVSS 3.0 score of 9.8 (AV:N/PR:N, C:H/I:H/A:H) describes a remotely exploitable critical flaw, but that conflicts with the advisory's own reproduction notes and with our assessment of CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H - impact is confined to the calling process and exploitability is mediated entirely by how each downstream application feeds the API. A proof-of-concept that reproduces the overflow under AddressSanitizer (200000-byte body into a 65536-byte buffer) is published in the GitHub advisory, but no CISA KEV listing or confirmed active exploitation is associated with this CVE in the available data; only applications using the low-level frame-sending path with attacker-influenced or unvalidated body lengths are exposed, while the higher-level publishing API splits bodies into valid frame-sized chunks and is not affected.

RemediationAI

Vendor-released patch: rabbitmq-c 0.17.0 (https://github.com/alanxz/rabbitmq-c/releases/tag/v0.17.0), which adds the length validation from PR https://github.com/alanxz/rabbitmq-c/pull/892 and rejects oversized body frames with AMQP_STATUS_BAD_AMQP_DATA instead of overflowing the buffer. Until upgrading is possible, applications that use the low-level amqp_send_frame() API should validate frame.payload.body_fragment.len against the remaining outbound buffer capacity (buffer length minus AMQP frame header and footer, i.e. the negotiated frame size, default 65536) and refuse oversized frames themselves, with the trade-off that the caller must track the connection's frame-size setting and reject or chunk large bodies that would previously have been passed through. Routing body payloads through the higher-level publishing API, which already splits bodies into valid frame-sized chunks, avoids the vulnerable code path entirely, at the cost of changing how the application assembles and sends body frames. Because the flaw fires in-process during serialization before any socket write, blocking ports or adding network controls does not reduce exposure; the fix must be applied in the process that links the library.

Affected VersionsENISA

rabbitmq-c < 0.17.0

Affected Packages

euvd rabbitmq_c fix: 0.17.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

rabbitmq-c (CPE cpe:2.3:a:alanxz:rabbitmq-c, maintained by Alan Antonuk) is a C client library implementing AMQP 0-9-1 framing for talking to RabbitMQ. The vulnerable path is amqp_send_frame() -> amqp_send_frame_inner() -> amqp_frame_to_bytes() in librabbitmq/amqp_connection.c: in the AMQP_FRAME_BODY case, body->len is trusted directly and memcpy'd at amqp_offset(out_frame, HEADER_SIZE) with no check that the payload fits the connection outbound buffer allocated by amqp_tune_connection() (default 65536 bytes, AMQP_DEFAULT_FRAME_SIZE). This is a CWE-787 out-of-bounds write whose root cause is a missing bounds validation on a length field taken from a caller-supplied structure. The trigger requires the consuming application to bypass the library's normal chunking and hand an oversized body fragment to the public low-level API; the advisory states the overflow fires locally during serialization, before any network communication with a broker, so remote network reachability is not inherent to the flaw. The upstream fix in PR #892 adds a guard rejecting body->len greater than buffer.len minus HEADER_SIZE plus FOOTER_SIZE with AMQP_STATUS_BAD_AMQP_DATA, and a regression test (tests/test_send_frame.c) asserts that an oversized body frame is rejected rather than written.

Know when Rabbitmq C gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.8 MEDIUM

Bug triggers in-process via a local low-level API call (AV:L/AC:L); out-of-bounds heap write primarily causes crash (A:H) with limited corruption (I:L) and no disclosure (C:N).

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Red Hat 8.1 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 10, 2026 - 17:18 EUVD
CVE Published
Nov 10, 2026 - 16:21 cve.org
CRITICAL 9.8

DescriptionCVE.org

rabbitmq-c is a C-language AMQP client library for RabbitMQ. Prior to version 0.17.0, a heap buffer overflow exists in rabbitmq-c when the public amqp_send_frame() API is used to serialize an oversized AMQP_FRAME_BODY. The issue occurs because amqp_frame_to_bytes() copies frame.payload.body_fragment.len bytes into the connection outbound buffer without validating that the body fragment fits within the allocated frame buffer. An application that passes an oversized body frame to amqp_send_frame() can trigger a heap out-of-bounds write, resulting in process crash and memory corruption. This issue has been patched in version 0.17.0.

Technical POC Analysis

Bug class: CWE-787 Out-of-bounds Write.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical heap overflow vulnerability in rabbitmq-c versions 0.16.0 and earlier could allow an attacker to crash or corrupt memory in applications that use the library's low-level amqp_send_frame() API to send AMQP body frames with payloads larger than the connection buffer. Only applications that directly invoke this API with oversized body fragments are affected; typical high-level usage and the RabbitMQ server itself are not impacted. Leadership should care because any internal or customer-facing service built on this library and using the low-level API could be disrupted, but exploitation requires a specific application-level flaw.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigation: enforce application-level validation to ensure payload.body_fragment.len does not exceed the outbound buffer size (65536 by default) before calling amqp_send_frame(). Prefer the library's higher-level APIs that handle framing safely. Monitor the vendor for a patched release.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Medium
common C AMQP client library, one of several RabbitMQ client bindings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy