Heap-based buffer overflow in c-ares - CVE-2016-5180

 

Heap-based buffer overflow in c-ares - CVE-2016-5180

Published: October 3, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32075
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2016-5180
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: c-ares.haxx.se
Affected software:
c-ares

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Heap-based buffer overflow in the ares_create_query function in c-ares 1.x before 1.12.0. A remote attacker can use a hostname with an escaped trailing dot. to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


How to mitigate CVE-2016-5180

Update to version 1.12.0.

Sources