Vulnerabilities / CVE-2016-5180

critical

CVE-2016-5180

c-ares: Single byte out of buffer write

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.2c-ares1.12.0-r0
alpine 3.3c-ares1.12.0-r0
alpine 3.4c-ares1.12.0-r0
alpine 3.5c-ares1.12.0-r0
alpine 3.6c-ares, nodejs1.12.0-r0 and 1 more
debian 11c-ares1.12.0-1
debian 12c-ares1.12.0-1
debian 13c-ares1.12.0-1
debian 14c-ares1.12.0-1
debian 7c-ares1.9.1-3+deb7u1
debian 8c-ares1.10.0-2+deb8u1
echoc-ares, c-ares-1.7.41.12.0-1 and 1 more
Show all 23 entries from 19 sources
SourcePackageFixed in
alpine 3.2c-ares1.12.0-r0
alpine 3.3c-ares1.12.0-r0
alpine 3.4c-ares1.12.0-r0
alpine 3.5c-ares1.12.0-r0
alpine 3.6c-ares1.12.0-r0
alpine 3.6nodejs6.8.0-r0
debian 11c-ares1.12.0-1
debian 12c-ares1.12.0-1
debian 13c-ares1.12.0-1
debian 14c-ares1.12.0-1
debian 7c-ares1.9.1-3+deb7u1
debian 8c-ares1.10.0-2+deb8u1
echoc-ares1.12.0-1
echoc-ares-1.7.41.7.4+e1
Red Hatc-aresno fix listed
Red Hatc-ares-develno fix listed
root.io debian 12rootio-c-ares1.12.0-1
seal Red Hat 7c-ares1.10.0-3.el7+sp999
seal Red Hat 7seal-c-ares1.10.0-3.el7+sp999
ubuntu 14.04c-ares1.10.0-2ubuntu0.1
ubuntu 16.04c-ares1.10.0-3ubuntu0.1
ubuntu 16.04-ESMc-ares1.10.0-3ubuntu0.1
ubuntu 16.10c-ares1.11.0-1ubuntu0.1

References

All 13 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.