CVE-2019-18609

critical

Description

An issue was discovered in amqp_handle_input in amqp_connection.c in rabbitmq-c 0.9.0. There is an integer overflow that leads to heap memory corruption in the handling of CONNECTION_STATE_HEADER. A rogue server could return a malicious frame header that leads to a smaller target_size value than needed. This condition is then carried on to a memcpy function that copies too much data into a heap buffer.

References

https://github.com/alanxz/rabbitmq-c/commit/fc85be7123050b91b054e45b91c78d3241a5047a

https://github.com/alanxz/rabbitmq-c/blob/master/ChangeLog.md

https://news.ycombinator.com/item?id=21681976

https://usn.ubuntu.com/4214-1/

https://lists.debian.org/debian-lts-announce/2019/12/msg00004.html

https://lists.fedoraproject.org/archives/list/[email protected]/message/WA7CPNVYMF6OQNIYNLWUY6U2GTKFOKH3/

https://lists.fedoraproject.org/archives/list/[email protected]/message/XQER6XTKYMHNQR7QTHW7DJAH645WQROU/

https://usn.ubuntu.com/4214-2/

https://security.gentoo.org/glsa/202003-07

Details

Source: MITRE

Published: 2019-12-01

Updated: 2022-01-01

Type: CWE-787

Risk Information

CVSS v2

Base Score: 7.5

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 10

Severity: HIGH

CVSS v3

Base Score: 9.8

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 3.9

Severity: CRITICAL