Описание
rabbitmq-c is a C-language AMQP client library for RabbitMQ. Prior to 0.16.0, a malicious AMQP server can send an undersized HEADER or METHOD frame during client login and cause unsigned size_t underflow in amqp_handle_input() in librabbitmq/amqp_connection.c. The parser subtracts HEADER_SIZE, fixed per-frame fields, and FOOTER_SIZE from state->target_size without first checking the minimum frame length. The wrapped encoded.len value is passed through amqp_decode_properties() to amqp_decode_table_internal(), where it defeats bounds checks and causes an out-of-bounds read and process crash. An on-path attacker can also trigger the issue when AMQP traffic is not protected by TLS with certificate validation. The demonstrated impact is denial of service, with no reliable memory disclosure or code execution shown. This issue is fixed in version 0.16.0.
A flaw was found in rabbitmq-c, a C-language AMQP (Advanced Message Queuing Protocol) client library. A malicious AMQP server or an on-path attacker can send an undersized HEADER or METHOD frame during client login, leading to an unsigned size_t underflow. This underflow causes an out-of-bounds read, which can result in a process crash and a denial of service (DoS).
Отчет
This Moderate impact denial of service vulnerability in rabbitmq-c affects Red Hat products that utilize the library to connect to AMQP servers. An attacker, either a malicious server or an on-path adversary, can send a crafted AMQP frame during client login, leading to an out-of-bounds read and a client process crash. Exploitation requires either a compromised server or an unprotected network path, and does not result in information disclosure or arbitrary code execution.
Меры по смягчению последствий
To mitigate this issue, ensure that all AMQP client connections are configured to use TLS with certificate validation. This prevents on-path attackers from exploiting the vulnerability by ensuring the authenticity of the AMQP server and encrypting traffic. Proper certificate management and configuration are required on both the client and server sides. Restart any services utilizing rabbitmq-c after applying this configuration change for it to take effect.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | librabbitmq | Fix deferred | ||
| Red Hat Enterprise Linux 7 | librabbitmq | Fix deferred | ||
| Red Hat Enterprise Linux 8 | librabbitmq | Fix deferred | ||
| Red Hat Enterprise Linux 9 | librabbitmq | Fix deferred |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
6.5 Medium
CVSS3
Связанные уязвимости
rabbitmq-c is a C-language AMQP client library for RabbitMQ. Prior to 0.16.0, a malicious AMQP server can send an undersized HEADER or METHOD frame during client login and cause unsigned size_t underflow in amqp_handle_input() in librabbitmq/amqp_connection.c. The parser subtracts HEADER_SIZE, fixed per-frame fields, and FOOTER_SIZE from state->target_size without first checking the minimum frame length. The wrapped encoded.len value is passed through amqp_decode_properties() to amqp_decode_table_internal(), where it defeats bounds checks and causes an out-of-bounds read and process crash. An on-path attacker can also trigger the issue when AMQP traffic is not protected by TLS with certificate validation. The demonstrated impact is denial of service, with no reliable memory disclosure or code execution shown. This issue is fixed in version 0.16.0.
rabbitmq-c is a C-language AMQP client library for RabbitMQ. Prior to 0.16.0, a malicious AMQP server can send an undersized HEADER or METHOD frame during client login and cause unsigned size_t underflow in amqp_handle_input() in librabbitmq/amqp_connection.c. The parser subtracts HEADER_SIZE, fixed per-frame fields, and FOOTER_SIZE from state->target_size without first checking the minimum frame length. The wrapped encoded.len value is passed through amqp_decode_properties() to amqp_decode_table_internal(), where it defeats bounds checks and causes an out-of-bounds read and process crash. An on-path attacker can also trigger the issue when AMQP traffic is not protected by TLS with certificate validation. The demonstrated impact is denial of service, with no reliable memory disclosure or code execution shown. This issue is fixed in version 0.16.0.
rabbitmq-c is a C-language AMQP client library for RabbitMQ. Prior to ...
6.5 Medium
CVSS3