---
id: "CVE-2026-59986"
page: "https://infrastack.ai/live/CVE-2026-59986"
kind: "vulnerability"
aliases: ["CVE-2026-59986"]
title: "rabbitmq-c: integer overflow in AMQP decoder leaks memory on 32-bit systems"
severity: "high"
cvss: 7.4
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["32-bit", "c", "embedded", "iot", "package", "rabbitmq"]
not_affected_if: ["64-bit-only", "version-0.17.0-or-later"]
published_at: "2026-11-10T17:17:45+00:00"
first_seen_at: "2026-11-10T17:22:44+00:00"
updated_at: "2026-11-10T17:23:58+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59986", "first_seen_at": "2026-11-10T17:22:44+00:00"}]
exploit_sources: []
---

# rabbitmq-c: integer overflow in AMQP decoder leaks memory on 32-bit systems

Link for people: https://infrastack.ai/live/CVE-2026-59986 (this .md is for agents)

rabbitmq-c is a C client library for RabbitMQ. On 32-bit systems, a length check in its AMQP field decoder can overflow, letting a malicious broker or peer cause reads of up to about 4 GB of process memory.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed version of rabbitmq-c and confirm whether it is below `0.17.0`.
- Confirm whether the application runs on a 32-bit target (ARM, MIPS, x86 ILP32, embedded IoT).
- Check whether the application decodes AMQP messages from untrusted or unverified brokers.

## Fix

- rabbitmq-c: move to `0.17.0` or later.

## Timeline

- 2026-11-10T17:22:44+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-59986

## Documents

- [advisory] Vendor advisory: github.com https://github.com/alanxz/rabbitmq-c/security/advisories/GHSA-jgjf-7fwf-f3c7
- [fix] Release notes: github.com https://github.com/alanxz/rabbitmq-c/releases/tag/v0.17.0

## From the sources

rabbitmq-c is a C-language AMQP client library for RabbitMQ. Prior to version 0.17.0, the bounds check (*offset = o + len) <= encoded.len overflows when o + len > SIZE_MAX on 32-bit systems. len is a uint32_t read from the AMQP wire as a BYTES/UTF8 field length. The overflow wraps the check to a small value that passes, producing a decoded amqp_bytes_t with a multi-GB .len pointing into a small frame buffer. This results in an out-of-bounds read of up to ~4GB of process memory on 32-bit systems (ARM, MIPS, x86 ILP32, embedded IoT AMQP clients). Enabling information disclosure or denial of service. Not exploitable on 64-bit systems where size_t is 64-bit. This issue has been patched in version 0.17.0.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
