CVE-2016-5180: ares_create_query single byte out of buffer write

Published Oct 3, 2016
·
Updated

A security vulnerability has been discovered in the c-ares library that is bundled with all versions of Node.js. Due to the difficulty of triggering and making use of this vulnerability we currently consider this a low-severity security flaw for Node.js users.

More information at https://c-ares.haxx.se/adv20160929.html

Other sources

Heap-based buffer overflow in the arescreatequery 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.

— MITRE

Affected Software

34 affected componentsFixes available
Google Android
c-ares c-ares=1.0.0
c-ares c-ares=1.1.0
c-ares c-ares=1.2.0
c-ares c-ares=1.2.1
c-ares c-ares=1.3.0
c-ares c-ares=1.3.1
c-ares c-ares=1.3.2
c-ares c-ares=1.4.0
c-ares c-ares=1.5.0
c-ares c-ares=1.5.1
c-ares c-ares=1.5.2
c-ares c-ares=1.5.3
c-ares c-ares=1.6.0
c-ares c-ares=1.7.0
c-ares c-ares=1.7.1
c-ares c-ares=1.7.2
c-ares c-ares=1.7.3
c-ares c-ares=1.7.4
c-ares c-ares=1.7.5
c-ares c-ares=1.8.0
c-ares c-ares=1.9.0
c-ares c-ares=1.9.1
c-ares c-ares=1.10.0
C-ares Project C-ares=1.11.0
Debian Debian Linux=8.0
Nodejs Node.js>=0.10.0<0.10.48
Nodejs Node.js>=0.12.0<0.12.17
Nodejs Node.js>=4.0.0<4.6.1
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=16.10
Node.js Node.js>=4.0.0<4.6.1
4.6.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.6.1
  2. Upgrade

    Upgrade c-ares to a version that resolves this vulnerability.

    Fixed in 1.12.0

Event History

Oct 3, 2016
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Oct 18, 2016
Data Sourced
via Node.js·04:25 PM
Severity
Data Sourced
via Node.js·05:04 PM
Affected Software
Jan 3, 2017
Data Sourced
via Android·12:00 AM
SeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2016-5180?

CVE-2016-5180 has a medium severity level due to its potential for denial of service and arbitrary code execution.

2

How do I fix CVE-2016-5180?

To fix CVE-2016-5180, upgrade c-ares to version 1.12.0 or later.

3

Which software versions are affected by CVE-2016-5180?

CVE-2016-5180 affects c-ares versions 1.0.0 through 1.11.0, as well as certain versions of Google Android and Node.js.

4

What type of vulnerability is CVE-2016-5180?

CVE-2016-5180 is a heap-based buffer overflow vulnerability.

5

Can CVE-2016-5180 lead to remote code execution?

Yes, CVE-2016-5180 can potentially allow remote attackers to execute arbitrary code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203