CVE-2026-59986 rabbitmq-c: amqp_decode_bytes size_t integer overflow bypasses bounds check on 32-bit (OOB read)
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
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.
Upgrade path
7 packages: 6 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/librabbitmq(Debian 12) | < 0.11.0-1+deb12u3; = 0.11.0-1; = 0.11.0-1+deb12u1; = 0.11.0-1+deb12u2 | 0.11.0-1+deb12u3 | Fixed |
| debian/librabbitmq(Debian 13) | < 0.15.0-1+deb13u2; = 0.15.0-1; = 0.15.0-1+deb13u1 | 0.15.0-1+deb13u2 | Fixed |
| debian/librabbitmq(Debian 14) | < 0.17.0-1; = 0.15.0-1; = 0.16.0-1 | 0.17.0-1 | Fixed |
| ubuntu/librabbitmq(Ubuntu 22.04) | < 0.10.0-1ubuntu2.2 | 0.10.0-1ubuntu2.2 | Fixed |
| ubuntu/librabbitmq(Ubuntu 24.04) | < 0.11.0-1ubuntu0.2 | 0.11.0-1ubuntu0.2 | Fixed |
| ubuntu/librabbitmq(Ubuntu 26.04) | < 0.15.0-1ubuntu0.26.04.2 | 0.15.0-1ubuntu0.26.04.2 | Fixed |
| alanxz rabbitmq-c | = < 0.17.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| alanxz rabbitmq-c | = < 0.17.0 | No fix listed |
| debian/librabbitmq(Debian:12) | < 0.11.0-1+deb12u3 | 0.11.0-1+deb12u3 |
| debian/librabbitmq(Debian:14) | < 0.17.0-1 | 0.17.0-1 |
| debian/librabbitmq(Debian:13) | < 0.15.0-1+deb13u2 | 0.15.0-1+deb13u2 |
| debian/librabbitmq(Debian:12) | = 0.11.0-1 | No fix listed |
| debian/librabbitmq(Debian:12) | = 0.11.0-1+deb12u1 | No fix listed |
| debian/librabbitmq(Debian:12) | = 0.11.0-1+deb12u2 | No fix listed |
| debian/librabbitmq(Debian:13) | = 0.15.0-1 | No fix listed |
| debian/librabbitmq(Debian:13) | = 0.15.0-1+deb13u1 | No fix listed |
| debian/librabbitmq(Debian:14) | = 0.15.0-1 | No fix listed |
| debian/librabbitmq(Debian:14) | = 0.16.0-1 | No fix listed |
| ubuntu/librabbitmq(Ubuntu:22.04) | < 0.10.0-1ubuntu2.2 | 0.10.0-1ubuntu2.2 |
| ubuntu/librabbitmq(Ubuntu:24.04) | < 0.11.0-1ubuntu0.2 | 0.11.0-1ubuntu0.2 |
| ubuntu/librabbitmq(Ubuntu:26.04) | < 0.15.0-1ubuntu0.26.04.2 | 0.15.0-1ubuntu0.26.04.2 |
References
- https://github.com/alanxz/rabbitmq-c/security/advisories/GHSA-jgjf-7fwf-f3c7 exploit
- https://github.com/alanxz/rabbitmq-c/pull/888
- https://github.com/alanxz/rabbitmq-c/releases/tag/v0.17.0
- Debian Security Tracker CVE-2026-59986 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8724-1 vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-121280 third-party-advisory