<Vulnerability name="CVE-2026-61547">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-11-10T16:21:17</PublicDate>
    <Bugzilla id="2570572" url="https://bugzilla.redhat.com/show_bug.cgi?id=2570572" xml:lang="en:us">
librabbitmq: rabbitmq-c: Heap Buffer Overflow in amqp_send_frame() When Serializing Oversized AMQP_FRAME_BODY
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>8.1</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-787</CWE>
    <Details xml:lang="en:us" source="Mitre">
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.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in rabbitmq-c. When serializing an oversized message frame, the library copies payload data into the outbound buffer without verifying that the data fits within the allocated memory. An attacker who can supply an oversized body frame to an application using this library can trigger a heap-based buffer overflow, potentially resulting in memory corruption or an application crash leading to a Denial of Service (DoS).
    </Details>
    <Statement xml:lang="en:us">
This vulnerability is rated as an Important severity flaw because an application utilizing librabbitmq to send externally supplied data could be forced into a heap corruption state, potentially permitting remote code execution or application crashes. In standard Red Hat Enterprise Linux environments, librabbitmq acts as a client library, meaning exploitation relies on a consuming application transmitting unbounded or untrusted payload sizes without prior validation. Because triggering the flaw requires specific application-level handling of oversized messages rather than default client behavior, successful exploitation depends heavily on the surrounding application logic and memory layout.
    </Statement>
    <Mitigation xml:lang="en:us">
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
    </Mitigation>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:10">
        <ProductName>Red Hat Enterprise Linux 10</ProductName>
        <FixState>Affected</FixState>
        <PackageName>librabbitmq</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/o:redhat:rhel_els:7">
        <ProductName>Red Hat Enterprise Linux 7</ProductName>
        <FixState>Affected</FixState>
        <PackageName>librabbitmq</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:8">
        <ProductName>Red Hat Enterprise Linux 8</ProductName>
        <FixState>Affected</FixState>
        <PackageName>librabbitmq</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux:9">
        <ProductName>Red Hat Enterprise Linux 9</ProductName>
        <FixState>Affected</FixState>
        <PackageName>librabbitmq</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-61547
https://nvd.nist.gov/vuln/detail/CVE-2026-61547
https://github.com/alanxz/rabbitmq-c/pull/892
https://github.com/alanxz/rabbitmq-c/releases/tag/v0.17.0
https://github.com/alanxz/rabbitmq-c/security/advisories/GHSA-hfjv-vcp3-39wh
    </References>
</Vulnerability>