Alanxz rabbitmq-c
rabbitmq-c: amqp_decode_bytes size_t integer overflow bypasses bounds check on 32-bit (OOB read)
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.17.0
Fixed in 0.17.0
Mitigation
Upgrade rabbitmq-c to 0.17.0 or later.
References
- Vendor advisory github.com/alanxz/rabbitmq-c/security/advisori…
- Patch github.com/alanxz/rabbitmq-c/pull/888
- Release notes github.com/alanxz/rabbitmq-c/releases/tag/v0.1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.