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.2 |
| c-ares | c-ares | 1.9.0 |
| c-ares | c-ares | 1.0.0 |
| c-ares | c-ares | 1.3.2 |
| c-ares | c-ares | 1.8.0 |
| c-ares | c-ares | 1.9.1 |
| c-ares | c-ares | 1.5.0 |
| canonical | ubuntu_linux | 16.10 |
| canonical | ubuntu_linux | 16.04 |
| c-ares | c-ares | 1.3.1 |
| canonical | ubuntu_linux | 14.04 |
| c-ares | c-ares | 1.7.1 |
| canonical | ubuntu_linux | 12.04 |
| c-ares | c-ares | 1.6.0 |
| debian | debian_linux | 8.0 |
| c-ares | c-ares | 1.1.0 |
| c-ares | c-ares | 1.3.0 |
| nodejs | node.js | * |
| c-ares | c-ares | 1.5.1 |
| c-ares | c-ares | 1.7.3 |
| c-ares | c-ares | 1.7.5 |
| c-ares_project | c-ares | 1.11.0 |
| c-ares | c-ares | 1.7.2 |
| c-ares | c-ares | 1.5.3 |
| c-ares | c-ares | 1.7.0 |
| c-ares | c-ares | 1.2.0 |
| c-ares | c-ares | 1.4.0 |
| c-ares | c-ares | 1.7.4 |
| c-ares | c-ares | 1.10.0 |
| c-ares | c-ares | 1.2.1 |
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 |
|---|---|---|
| c-ares | c-ares | 1.12.0 |
| c-ares | c-ares | 1.9.0 |
| nodejs | node.js | * |
| c-ares_project | c-ares | 1.11.0 |
| c-ares | c-ares | 1.8.0 |
| c-ares | c-ares | 1.9.1 |
| c-ares | c-ares | 1.10.0 |
A possible use-after-free and double-free in c-ares lib version 1.16.0 if ares_destroy() is called prior to ares_getaddrinfo() completing. This flaw possibly allows an attacker to crash the service that uses c-ares lib. The highest threat from this vulnerability is to this service availability.
CVSS 3.x
| Source | Score | Severity | Vector | Exploitability | Impact |
|---|---|---|---|---|---|
| nvd@nist.gov | 3.3 | LOW | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L | 1.8 | 1.4 |
CVSS 2.0
Severity: LOW
Problem Type: CWE-120,CWE-415,CWE-416,
Products Affected
| Vendor | Product | Version |
|---|---|---|
| c-ares | c-ares | 1.16.0 |
| fedoraproject | fedora | 33 |
Buffer overflow vulnerability in c-ares before 1_16_1 thru 1_17_0 via function ares_parse_soa_reply in ares_parse_soa_reply.c.
CVSS 3.x
| Source | Score | Severity | Vector | Exploitability | Impact |
|---|---|---|---|---|---|
| nvd@nist.gov | 5.9 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | 2.2 | 3.6 |
Products Affected
| Vendor | Product | Version |
|---|---|---|
| debian | debian_linux | 10.0 |
| c-ares | c-ares | 1.17.0 |
| c-ares | c-ares | 1.16.1 |
c-ares is a C library for asynchronous DNS requests. `ares__read_line()` is used to parse local configuration files such as `/etc/resolv.conf`, `/etc/nsswitch.conf`, the `HOSTALIASES` file, and if using a c-ares version prior to 1.27.0, the `/etc/hosts` file. If any of these configuration files has an embedded `NULL` character as the first character in a new line, it can lead to attempting to read memory prior to the start of the given buffer which may result in a crash. This issue is fixed in c-ares 1.27.0. No known workarounds exist.
CVSS 3.x
| Source | Score | Severity | Vector | Exploitability | Impact |
|---|---|---|---|---|---|
| security-advisories@github.com | 4.4 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H | 0.8 | 3.6 |
Products Affected
| Vendor | Product | Version |
|---|---|---|
| fedoraproject | fedora | 39 |
| c-ares | c-ares | * |
| fedoraproject | fedora | 38 |
| fedoraproject | fedora | 40 |
c-ares is an asynchronous resolver library. Versions 1.32.3 through 1.34.5 terminate a query after maximum attempts when using read_answer() and process_answer(), which can cause a Denial of Service. This issue is fixed in version 1.34.6.
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:N/A:H | 2.2 | 3.6 |
Products Affected
| Vendor | Product | Version |
|---|---|---|
| c-ares | c-ares | * |