Skip to content
OpenAdvisories
Unscored Public exploit CVE-2016-5180 EUVD-2016-6131GHSA-29hr-5wcr-whpc

Heap-based buffer overflow in the ares_create_query function in c-ares 1.x before 1.12.0 allows remote attackers to cause a denial of servi…

Published Oct 3, 2016 · Updated Aug 6, 2024 · Assigned by Chrome

Description

Heap-based buffer overflow in the ares_create_query function in c-ares 1.x before 1.12.0 allows remote attackers to cause a denial of service (out-of-bounds write) or possibly execute arbitrary code via a hostname with an escaped trailing dot.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 c-ares 1.12.0-1 —
Debian 13 c-ares 1.12.0-1 —
Debian 12 c-ares 1.12.0-1 —
Debian 8 c-ares 1.10.0-2+deb8u1 DSA-3682-1
Debian 7 c-ares 1.9.1-3+deb7u1 DLA-648-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS c-ares 1.10.0-3ubuntu0.1 USN-3143-1
Ubuntu 14.04 LTS c-ares 1.10.0-2ubuntu0.1 USN-3143-1
ReleasePackageFixed inAdvisory
RHEL 2 rh-nodejs4-http-parser +1 2.7.0-2.el6 RHSA-2017:0002
RHEL 2 rh-nodejs4-nodejs +2 4.6.2-4.el6 RHSA-2017:0002
ReleasePackageFixed inAdvisory
SLES 12 SP2 libcares2 1.9.1-5.1 SUSE-SU-2016:3286-1
SLES 12 SP1 libcares2 1.9.1-5.1 SUSE-SU-2016:3286-1
SLES 12 nodejs4 4.6.1-11.1 SUSE-SU-2016:2898-1
SLES 11 SP4 libcares2 1.7.4-7.9.1 SUSE-SU-2016:3287-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP2 libcares2 1.9.1-5.1 SUSE-SU-2016:3286-1
SLES for SAP 12 SP1 libcares2 1.9.1-5.1 SUSE-SU-2016:3286-1
SLES for SAP 11 SP4 libcares2 1.7.4-7.9.1 SUSE-SU-2016:3287-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed c-ares 1.12.0-1.1 openSUSE-SU-2024:10147-1
ReleasePackageFixed inAdvisory
Alpine v3.6 c-ares 1.12.0-r0 —
Alpine v3.6 nodejs 6.8.0-r0 —
Alpine v3.5 c-ares 1.12.0-r0 —
Alpine v3.4 c-ares 1.12.0-r0 —
Alpine v3.3 c-ares 1.12.0-r0 —
Alpine v3.2 c-ares 1.12.0-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 10

References