Affected versions
- Affected versions
- <0.10.0-1ubuntu2.1
- Fixed version
- 0.10.0-1ubuntu2.1
- Affected versions
- <0.11.0-1ubuntu0.1
- Fixed version
- 0.11.0-1ubuntu0.1
- Affected versions
- <0.15.0-1ubuntu0.25.10.1
- Fixed version
- 0.15.0-1ubuntu0.25.10.1
- Affected versions
- <0.15.0-1ubuntu0.26.04.1
- Fixed version
- 0.15.0-1ubuntu0.26.04.1
- Affected versions
- <0.4.1-1ubuntu0.1~esm2
- Fixed version
- 0.4.1-1ubuntu0.1~esm2
- Affected versions
- <0.7.1-1ubuntu0.2+esm1
- Fixed version
- 0.7.1-1ubuntu0.2+esm1
- Affected versions
- <0.8.0-1ubuntu0.18.04.2+esm1
- Fixed version
- 0.8.0-1ubuntu0.18.04.2+esm1
- Affected versions
- <0.10.0-1ubuntu0.20.04.1~esm1
- Fixed version
- 0.10.0-1ubuntu0.20.04.1~esm1
Description
rabbitmq-c is a C-language AMQP client library for RabbitMQ. Prior to 0.16.0, a malicious AMQP server can send an undersized connection.tune.frame_max value during amqp_login(), and rabbitmq-c accepts the value in amqp_login_inner() in librabbitmq/amqp_socket.c. amqp_tune_connection() in librabbitmq/amqp_connection.c uses frame_max to reallocate the outbound buffer without enforcing AMQP_FRAME_MIN_SIZE. Immediate serialization of connection.tune-ok through amqp_frame_to_bytes() writes beyond the undersized heap allocation, causing memory corruption and likely denial of service. An on-path attacker can also trigger the flaw against plaintext AMQP traffic. Code execution is theoretically possible but was not demonstrated. This issue is fixed in version 0.16.0.

