Every CVE Search/ Get API key

CVE-2016-5180

Heap-based buffer overflow in the ares_create_query function in c-ares 1.x before 1.12.0 allows...

9.8 CriticalPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

8.65%Up 2.0 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2016-5180
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2016-5180
Updated
2026-11-02
EUVDEUVD-2016-6131 No score

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.

Record
EUVD-2016-6131
Updated
2026-11-03
GitHub AdvisoriesGHSA-29hr-5wcr-whpc 9.8

Heap-based buffer overflow in the ares_create_query function in c-ares 1.x before 1.12.0 allows...

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.

Record
GHSA-29hr-5wcr-whpc
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
OSVALPINE-CVE-2016-5180 9.8

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.

Record
ALPINE-CVE-2016-5180
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBELL-CVE-2016-5180 9.8

CVE-2016-5180 does not affect BellSoft software

Record
BELL-CVE-2016-5180
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 12 moreShow less
OSV 9.8

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.

Record
CVE-2016-5180
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2016-5180 9.8

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.

Record
DEBIAN-CVE-2016-5180
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2017:0002 7.4

Red Hat Security Advisory: rh-nodejs4-nodejs and rh-nodejs4-http-parser security update

Record
RHSA-2017:0002
CVSS 3.0
7.4 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2016-5180 9.8

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.

Record
UBUNTU-CVE-2016-5180
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVCLSA-2025-1757608893 No score

c-ares: Fix of CVE-2016-5180

  • CVE-2016-5180: fix heap-based buffer overflow in the ares_create_query causing DoS
Record
CLSA-2025-1757608893
Updated
2026-11-02
OSVMGASA-2016-0351 No score

Updated c-ares packages fix security vulnerability

In c-ares before 1.12.0, When a string is passed in to 'ares_create_query' or 'ares_mkquery' and uses an escaped trailing dot, like "hello.", c-ares calculates the string length wrong and subsequently writes outside of the the allocated buffer with one byte. The wrongly written byte is the least significant byte of the 'dnsclass' argument; most commonly 1 (CVE-2016-5180).

Record
MGASA-2016-0351
Updated
2026-11-02
OSVopenSUSE-SU-2024:10147-1 No score

libcares-devel-1.12.0-1.1 on GA media

These are all security issues fixed in the libcares-devel-1.12.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10147-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10247-1 No score

nodejs4-4.7.0-1.1 on GA media

These are all security issues fixed in the nodejs4-4.7.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10247-1
Updated
2026-11-02
OSVSUSE-SU-2016:2898-1 No score

Security update for nodejs4

This update for nodejs4 fixes the following issues:

Security issues fixed:

  • CVE-2016-5180: c-ares: Fix for single-byte buffer overwrite (bsc#1007728).

Bug fixes:

  • bsc#1009011: npm4 should provide versioned nodejs-npm and npm allowing nodejs-packaging to continue to function properly in Leap 42.2
Record
SUSE-SU-2016:2898-1
Updated
2026-11-02
OSVSUSE-SU-2016:3286-1 No score

Security update for libcares2

This update for libcares2 fixes the following issues:

  • Add patch to fix single byte out of buffer write (CVE-2016-5180, bsc#1007728)
Record
SUSE-SU-2016:3286-1
Updated
2026-11-02
OSVSUSE-SU-2016:3287-1 No score

Security update for libcares2

This update for libcares2 fixes the following issues:

  • Add patch to fix single byte out of buffer write (CVE-2016-5180, bsc#1007728)
Record
SUSE-SU-2016:3287-1
Updated
2026-11-02
OSVUSN-3143-1 No score

c-ares vulnerability

Gzob Qq discovered that c-ares incorrectly handled certain hostnames. A remote attacker could use this issue to cause applications using c-ares to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-3143-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
c-ares
Alpine:v3.2
before 1.12.0-r0
1.12.0-r0
c-ares
Alpine:v3.3
before 1.12.0-r0
1.12.0-r0
c-ares
Alpine:v3.4
before 1.12.0-r0
1.12.0-r0
c-ares
Alpine:v3.5
before 1.12.0-r0
1.12.0-r0
c-ares
Alpine:v3.6
before 1.12.0-r0
1.12.0-r0
nodejs
Alpine:v3.6
before 6.8.0-r0
6.8.0-r0
c-ares
TuxCare:CentOS:7
before 1.10.0-3.el7_9.1.tuxcare.els1
1.10.0-3.el7_9.1.tuxcare.els1
c-ares-devel
TuxCare:CentOS:7
before 1.10.0-3.el7_9.1.tuxcare.els1
1.10.0-3.el7_9.1.tuxcare.els1
c-ares
Debian:12
before 1.12.0-1
1.12.0-1
c-ares
Debian:13
before 1.12.0-1
1.12.0-1
Show 36 moreShow less
Affected packages
PackageAffectedFixed
c-ares
Debian:14
before 1.12.0-1
1.12.0-1
c-ares
Debian:7
before 1.9.1-3+deb7u1, plus listed versions
1.9.1-3
1.9.1-3+deb7u1
c-ares
Debian:8
before 1.10.0-2+deb8u1, plus listed versions
1.10.0-2
1.10.0-2+deb8u1
c-ares
Mageia:5
before 1.10.0-5.1.mga5
1.10.0-5.1.mga5
rh-nodejs4-http-parser
Red Hat:rhel_software_collections:2::el6
before 0:2.7.0-2.el6
0:2.7.0-2.el6
rh-nodejs4-http-parser-debuginfo
Red Hat:rhel_software_collections:2::el6
before 0:2.7.0-2.el6
0:2.7.0-2.el6
rh-nodejs4-http-parser-devel
Red Hat:rhel_software_collections:2::el6
before 0:2.7.0-2.el6
0:2.7.0-2.el6
rh-nodejs4-nodejs
Red Hat:rhel_software_collections:2::el6
before 0:4.6.2-4.el6
0:4.6.2-4.el6
rh-nodejs4-nodejs-debuginfo
Red Hat:rhel_software_collections:2::el6
before 0:4.6.2-4.el6
0:4.6.2-4.el6
rh-nodejs4-nodejs-devel
Red Hat:rhel_software_collections:2::el6
before 0:4.6.2-4.el6
0:4.6.2-4.el6
rh-nodejs4-nodejs-docs
Red Hat:rhel_software_collections:2::el6
before 0:4.6.2-4.el6
0:4.6.2-4.el6
rh-nodejs4-http-parser
Red Hat:rhel_software_collections:2::el7
before 0:2.7.0-2.el7
0:2.7.0-2.el7
rh-nodejs4-http-parser-debuginfo
Red Hat:rhel_software_collections:2::el7
before 0:2.7.0-2.el7
0:2.7.0-2.el7
rh-nodejs4-http-parser-devel
Red Hat:rhel_software_collections:2::el7
before 0:2.7.0-2.el7
0:2.7.0-2.el7
rh-nodejs4-nodejs
Red Hat:rhel_software_collections:2::el7
before 0:4.6.2-4.el7
0:4.6.2-4.el7
rh-nodejs4-nodejs-debuginfo
Red Hat:rhel_software_collections:2::el7
before 0:4.6.2-4.el7
0:4.6.2-4.el7
rh-nodejs4-nodejs-devel
Red Hat:rhel_software_collections:2::el7
before 0:4.6.2-4.el7
0:4.6.2-4.el7
rh-nodejs4-nodejs-docs
Red Hat:rhel_software_collections:2::el7
before 0:4.6.2-4.el7
0:4.6.2-4.el7
nodejs4
SUSE:Linux Enterprise Module for Web and Scripting 12
before 4.6.1-11.1
4.6.1-11.1
libcares2
SUSE:Linux Enterprise Desktop 12 SP1
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Desktop 12 SP2
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Server 12 SP1
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Server 12 SP2
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Workstation Extension 12 SP1
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Workstation Extension 12 SP2
before 1.9.1-5.1
1.9.1-5.1
libcares2
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 1.7.4-7.9.1
1.7.4-7.9.1
libcares2
SUSE:Linux Enterprise Server 11 SP4
before 1.7.4-7.9.1
1.7.4-7.9.1
libcares2
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 1.7.4-7.9.1
1.7.4-7.9.1
c-ares
Ubuntu:14.04:LTS
before 1.10.0-2ubuntu0.1, plus listed versions
1.10.0-2
1.10.0-2ubuntu0.1
c-ares
Ubuntu:16.04:LTS
before 1.10.0-3ubuntu0.1, plus listed versions
1.10.0-21.10.0-3
1.10.0-3ubuntu0.1
c-ares
openSUSE:Tumbleweed
before 1.12.0-1.1
1.12.0-1.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubpouriam23/CVE-2016-51802025-05-23
PoC in GitHubpouriam23/CVE-2016-5180-docker-2025-05-23
PoC in GitHubpouriam23/final-CVE-2016-51802025-05-24

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-5180 is a critical vulnerability (CVSS 9.8) in C-ares, published September 30, 2016. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 8.65%, the 95th percentile. Fixed in c-ares 1.12.0-r0.

References

Show 48 moreShow less
MoveEnter Open