MidnightBSD

Advisories for c-ares_project

CVE-2016-5180 HIGH

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.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3.9 5.9

CVSS 2.0

Severity: HIGH

Problem Type: CWE-787,

Products Affected

Vendor Product Version
c-ares c-ares 1.5.3
c-ares c-ares 1.7.3
c-ares c-ares 1.3.2
c-ares c-ares 1.5.2
canonical ubuntu_linux 16.10
c-ares_project c-ares 1.11.0
c-ares c-ares 1.3.0
c-ares c-ares 1.9.0
c-ares c-ares 1.7.4
c-ares c-ares 1.7.2
c-ares c-ares 1.2.1
c-ares c-ares 1.5.0
c-ares c-ares 1.6.0
c-ares c-ares 1.2.0
nodejs node.js *
canonical ubuntu_linux 14.04
c-ares c-ares 1.8.0
canonical ubuntu_linux 16.04
c-ares c-ares 1.3.1
c-ares c-ares 1.4.0
c-ares c-ares 1.7.0
debian debian_linux 8.0
canonical ubuntu_linux 12.04
c-ares c-ares 1.7.1
c-ares c-ares 1.9.1
c-ares c-ares 1.7.5
c-ares c-ares 1.0.0
c-ares c-ares 1.5.1
c-ares c-ares 1.1.0
c-ares c-ares 1.10.0
CVE-2017-1000381 MEDIUM

The c-ares function `ares_parse_naptr_reply()`, which is used for parsing NAPTR responses, could be triggered to read memory outside of the given input buffer if the passed in DNS response packet was crafted in a particular way.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-200,

Products Affected

Vendor Product Version
nodejs node.js *
c-ares c-ares 1.9.1
c-ares c-ares 1.8.0
c-ares_project c-ares 1.11.0
c-ares c-ares 1.12.0
c-ares c-ares 1.9.0
c-ares c-ares 1.10.0
CVE-2020-8277 MEDIUM

A Node.js application that allows an attacker to trigger a DNS request for a host of their choice could trigger a Denial of Service in versions < 15.2.1, < 14.15.1, and < 12.19.1 by getting the application to resolve a DNS record with a larger number of responses. This is fixed in 15.2.1, 14.15.1, and 12.19.1.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 3.9 3.6

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-400,CWE-400,

Products Affected

Vendor Product Version
oracle jd_edwards_enterpriseone_tools *
nodejs node.js *
fedoraproject fedora 33
oracle graalvm 20.3.0
oracle retail_xstore_point_of_service 19.0.2
oracle retail_xstore_point_of_service 18.0.3
oracle mysql_cluster *
fedoraproject fedora 32
oracle blockchain_platform *
c-ares_project c-ares *
oracle retail_xstore_point_of_service 16.0.6
oracle retail_xstore_point_of_service 17.0.4
oracle graalvm 19.3.4
CVE-2021-3672 MEDIUM

A flaw was found in c-ares library, where a missing input validation check of host names returned by DNS (Domain Name Servers) can lead to output of wrong hostnames which might potentially lead to Domain Hijacking. The highest threat from this vulnerability is to confidentiality and integrity as well as system availability.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 5.6 MEDIUM CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L 2.2 3.4

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-79,CWE-79,

Products Affected

Vendor Product Version
redhat enterprise_linux_for_power_little_endian_eus 8.2
redhat enterprise_linux_server_update_services_for_sap_solutions 8.1
redhat enterprise_linux 7.7
redhat enterprise_linux_for_ibm_z_systems_eus 8.1
redhat enterprise_linux_for_power_little_endian_eus 8.1
redhat enterprise_linux_for_ibm_z_systems_eus 8.4
redhat enterprise_linux 8.0
redhat enterprise_linux_for_power_little_endian 8.0
redhat enterprise_linux_eus 8.2
siemens sinec_infrastructure_network_services *
redhat enterprise_linux_workstation 1
redhat enterprise_linux_eus 7.7
pgbouncer pgbouncer *
fedoraproject fedora 34
redhat enterprise_linux_server_aus 8.2
redhat enterprise_linux_eus 8.4
redhat enterprise_linux_server_aus 8.4
nodejs node.js *
redhat enterprise_linux_computer_node 1
redhat enterprise_linux_server_update_services_for_sap_solutions 8.4
fedoraproject fedora 33
redhat enterprise_linux_eus 8.1
redhat enterprise_linux_for_ibm_z_systems_eus 8.2
redhat enterprise_linux_server_tus 8.2
redhat enterprise_linux 7.0
redhat enterprise_linux_server_update_services_for_sap_solutions 8.2
redhat enterprise_linux_for_power_little_endian_eus 8.4
redhat enterprise_linux_tus 8.4
c-ares_project c-ares *
redhat enterprise_linux_server_tus 8.4
redhat enterprise_linux_for_ibm_z_systems 8.0
CVE-2022-4904

A flaw was found in the c-ares package. The ares_set_sortlist is missing checks about the validity of the input string, which allows a possible arbitrary length stack overflow. This issue may cause a denial of service or a limited impact on confidentiality and integrity.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
nvd@nist.gov 8.6 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H 3.9 4.7

Products Affected

Vendor Product Version
redhat enterprise_linux 8.0
redhat enterprise_linux 9.0
redhat software_collections -
fedoraproject fedora 36
c-ares_project c-ares *
c-ares_project c-ares -
CVE-2023-31124

c-ares is an asynchronous resolver library. When cross-compiling c-ares and using the autotools build system, CARES_RANDOM_FILE will not be set, as seen when cross compiling aarch64 android. This will downgrade to using rand() as a fallback which could allow an attacker to take advantage of the lack of entropy by not using a CSPRNG. This issue was patched in version 1.19.1.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security-advisories@github.com 3.7 LOW CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N 2.2 1.4

Products Affected

Vendor Product Version
fedoraproject fedora 38
c-ares_project c-ares *
fedoraproject fedora 37
CVE-2023-31130

c-ares is an asynchronous resolver library. ares_inet_net_pton() is vulnerable to a buffer underflow for certain ipv6 addresses, in particular "0::00:00:00/2" was found to cause an issue. C-ares only uses this function internally for configuration purposes which would require an administrator to configure such an address via ares_set_sortlist(). However, users may externally use ares_inet_net_pton() for other purposes and thus be vulnerable to more severe issues. This issue has been fixed in 1.19.1.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security-advisories@github.com 4.1 MEDIUM CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H 0.5 3.6

Products Affected

Vendor Product Version
debian debian_linux 11.0
debian debian_linux 10.0
fedoraproject fedora 38
c-ares_project c-ares *
fedoraproject fedora 37
CVE-2023-31147

c-ares is an asynchronous resolver library. When /dev/urandom or RtlGenRandom() are unavailable, c-ares uses rand() to generate random numbers used for DNS query ids. This is not a CSPRNG, and it is also not seeded by srand() so will generate predictable output. Input from the random number generator is fed into a non-compilant RC4 implementation and may not be as strong as the original RC4 implementation. No attempt is made to look for modern OS-provided CSPRNGs like arc4random() that is widely available. This issue has been fixed in version 1.19.1.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security-advisories@github.com 5.9 MEDIUM CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N 2.2 3.6

Products Affected

Vendor Product Version
fedoraproject fedora 38
c-ares_project c-ares *
fedoraproject fedora 37
CVE-2023-32067

c-ares is an asynchronous resolver library. c-ares is vulnerable to denial of service. If a target resolver sends a query, the attacker forges a malformed UDP packet with a length of 0 and returns them to the target resolver. The target resolver erroneously interprets the 0 length as a graceful shutdown of the connection. This issue has been patched in version 1.19.1.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
security-advisories@github.com 7.5 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 3.9 3.6

Products Affected

Vendor Product Version
debian debian_linux 11.0
debian debian_linux 10.0
fedoraproject fedora 38
c-ares_project c-ares *
fedoraproject fedora 37