CVE-2026-59986: 
Wolfi vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Reconnaissance: Identify 32-bit systems (ARM, MIPS, x86 ILP32, embedded IoT devices) running rabbitmq-c versions prior to 0.17.0 that connect to an AMQP broker over an unencrypted connection (default port 5672).
  2. Attacker positioning: Set up a malicious AMQP broker that the target client will connect to, or perform a man-in-the-middle attack on an unencrypted AMQP session between the client and a legitimate broker.
  3. Craft malicious AMQP frame: Construct an AMQP frame containing a table with a BYTES/UTF8 field whose wire-encoded length is set to 0xFFFFFFF5 (4294967285).
  4. Trigger integer overflow: When the 32-bit client calls 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.
  5. Obtain oversized amqp_bytes_t: The decoded amqp_bytes_t struct is returned with .len = 4294967285 (~4GB) and .bytes pointing into the small frame buffer.
  6. Trigger OOB read: The client application processes the decoded value (e.g., via 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).

Indicators of compromise

  • Network: Unexpected or unauthorized AMQP broker connections (port 5672) from unknown IP addresses; unencrypted AMQP traffic on the network where TLS is expected; AMQP frames with anomalously large BYTES/UTF8 field length values (e.g., near 0xFFFFFFFF).
  • Process: Unexpected SIGSEGV or segmentation fault crashes in processes using librabbitmq on 32-bit systems; abnormal memory access patterns or core dumps from AMQP client processes.
  • Logs: Application crash logs or core dumps referencing amqp_decode_bytes, amqp_table_clone, or related librabbitmq functions; error messages indicating memory access violations in AMQP client applications.
  • File System: Unexpected core dump files (core.*) in directories writable by the AMQP client process on 32-bit systems.

Mitigation and workarounds

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.

Community reactions

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).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

librabbitmq: 0.11.0-1+deb12u3

Fixed

sid

librabbitmq: 0.17.0-1

Fixed

trixie

librabbitmq: 0.15.0-1+deb13u2

Fixed

Ubuntu

Fixed

bionic (esm-apps)

librabbitmq: 0.8.0-1ubuntu0.18.04.2+esm1

Fixed

devel

librabbitmq

Not Affected

focal (esm-infra)

librabbitmq: 0.10.0-1ubuntu0.20.04.1~esm1

Fixed

jammy

librabbitmq: 0.10.0-1ubuntu2.2

Fixed

noble

librabbitmq: 0.11.0-1ubuntu0.2

Fixed

resolute

librabbitmq: 0.15.0-1ubuntu0.26.04.2

Fixed

trusty (esm-infra-legacy)

librabbitmq: 0.4.1-1ubuntu0.1~esm2

Fixed

xenial (esm-apps-legacy)

librabbitmq: 0.7.1-1ubuntu0.2+esm1

Fixed

Source: This report was generated using AI

Related Wolfi vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-130001CRITICAL9.8
  • Ruby logoRuby
  • logstash-8.19
NoYesNov 18, 2026
CVE-2026-133608MEDIUM6.9
  • Wolfi logoWolfi
  • zipkin
NoNoNov 20, 2026
CVE-2026-132276MEDIUM5.9
  • Python logoPython
  • airbyte-source-jira
NoYesNov 20, 2026
CVE-2026-126765LOW3.7
  • Wolfi logoWolfi
  • glibc-langpack-ne
NoYesNov 19, 2026
CVE-2026-134763LOW2.1
  • Wolfi logoWolfi
  • freerdp2
NoYesNov 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management