
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-59986 is an integer overflow vulnerability in rabbitmq-c, a C-language AMQP client library for RabbitMQ, that allows an unauthenticated network attacker to trigger an out-of-bounds read of up to ~4GB of process memory on 32-bit systems. The flaw exists in the amqp_decode_bytes function in librabbitmq/amqp_private.h (lines 310–320), where a bounds check overflows when parsing BYTES/UTF8 field lengths from the AMQP wire protocol. All versions prior to 0.17.0 are affected; 64-bit systems are not exploitable. The vulnerability was reported by TristanInSec and thesmartshadow, with the advisory published on July 2, 2026, and the patch released the same day. It carries a CVSS v3.1 base score of 7.4 (High) (GitHub Advisory).
The root cause is a size_t integer overflow (CWE-190) in the bounds check expression (*offset = o + len) <= encoded.len within amqp_decode_bytes. The variable len is a uint32_t read directly from the AMQP wire frame; on 32-bit platforms where size_t is also 32-bit, adding a large attacker-controlled len (e.g., 0xFFFFFFF5) to a small offset (e.g., o=11) wraps around to zero modulo 2^32, causing the check to pass for any non-empty buffer. This produces an amqp_bytes_t struct with .len set to ~4GB and .bytes pointing into a small frame buffer, classified as CWE-125 (Out-of-bounds Read). Exploitation requires the attacker to act as a malicious AMQP broker or perform a man-in-the-middle attack on an unencrypted AMQP connection. The fix rewrites the check to o <= encoded.len && len <= encoded.len - o, eliminating the overflow (GitHub Advisory, Fix PR #888).
Successful exploitation on 32-bit systems (ARM, MIPS, x86 ILP32, embedded IoT AMQP clients) can result in an out-of-bounds read of up to approximately 4GB of process memory, enabling information disclosure of heap contents including credentials and sensitive application data. It can also cause a denial of service via a SIGSEGV crash when the application processes the oversized amqp_bytes_t value (e.g., during amqp_table_clone, logging, or comparison operations). Integrity is not impacted, and 64-bit systems are entirely unaffected (GitHub Advisory).
A proof-of-concept exploit path is documented in the GitHub Security Advisory, providing specific crafted values (length = 0xFFFFFFF5, o=11) sufficient to reproduce the overflow on a 32-bit build without further research. There is no evidence of active in-the-wild exploitation at this time. The EPSS score is approximately 0.51%, and the vulnerability is not listed in the CISA KEV catalog. Exploitation is rated as non-automatable due to the requirement for a malicious broker or MITM position, and NVD SSVC classifies exploitation status as "poc" with partial technical impact (GitHub Advisory, Feedly).
0xFFFFFFF5 (4294967285).amqp_decode_bytes with offset o=11, the computation o + len = 11 + 4294967285 = 0 (mod 2^32) wraps to zero, passing the bounds check 0 <= encoded.len for any non-empty buffer.amqp_bytes_t struct is returned with .len = 4294967285 (~4GB) and .bytes pointing into the small frame buffer.amqp_table_clone, logging, or string comparison), reading up to ~4GB of process memory out of bounds, potentially disclosing heap contents (credentials, keys) or crashing the process with SIGSEGV (GitHub Advisory, Fix PR #888).0xFFFFFFFF).amqp_decode_bytes, amqp_table_clone, or related librabbitmq functions; error messages indicating memory access violations in AMQP client applications.core.*) in directories writable by the AMQP client process on 32-bit systems.The primary remediation is to upgrade rabbitmq-c to version 0.17.0 or later, which rewrites the vulnerable bounds check in amqp_decode_bytes to prevent integer overflow (v0.17.0 Release, Fix PR #888). Downstream distributions including Debian LTS, Ubuntu, and Mageia have issued updated packages. If immediate patching is not possible, restrict network access to AMQP services (port 5672) to trusted sources only, and enforce TLS for all AMQP connections to prevent MITM-based exploitation. Note that this vulnerability only affects 32-bit platforms; 64-bit deployments are not at risk.
The vulnerability was credited to reporters TristanInSec and thesmartshadow in the official GitHub Security Advisory. Multiple Linux distributions including Debian LTS (DLA-4763-1), Ubuntu (USN-8724-1), and Mageia (MGASA-2026-0397) issued security advisories and updated packages. The fix was noted to have been generated with Claude Code (Anthropic's AI coding assistant), which was acknowledged in the pull request commit message. The library's OSS-Fuzz integration was identified as having missed this class of bug because it only tests 64-bit builds (GitHub Advisory, Debian LTS, Ubuntu Advisory).
Fix availability across major Linux distributions and their releases.
bookworm
librabbitmq: 0.11.0-1+deb12u3
sid
librabbitmq: 0.17.0-1
trixie
librabbitmq: 0.15.0-1+deb13u2
bionic (esm-apps)
librabbitmq: 0.8.0-1ubuntu0.18.04.2+esm1
devel
librabbitmq
focal (esm-infra)
librabbitmq: 0.10.0-1ubuntu0.20.04.1~esm1
jammy
librabbitmq: 0.10.0-1ubuntu2.2
noble
librabbitmq: 0.11.0-1ubuntu0.2
resolute
librabbitmq: 0.15.0-1ubuntu0.26.04.2
trusty (esm-infra-legacy)
librabbitmq: 0.4.1-1ubuntu0.1~esm2
xenial (esm-apps-legacy)
librabbitmq: 0.7.1-1ubuntu0.2+esm1
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."