All vulnerabilities

Servers and applications

CVE-2026-69186

Memory-amplification denial of service via unvalidated DNS header record counts

Severity
Medium 5.3
Published
6 Jul 2026
Last changed
3 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.34.7
Exploit chance
0.4% in the next 30 daysHigher than 33% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)
Attack
Over the network · No login needed · No user action needed
Attacker can
Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Also known as
GHSA-jv8r-gqr9-68wj
Sources
Project advisories (GitHub)

Description

When parsing a DNS response, c-ares pre-allocated per-section resource-record arrays sized directly from the attacker-controlled ANCOUNT, NSCOUNT, and ARCOUNT fields of the 12-byte DNS header, without first checking those counts against the number of bytes actually present in the message. A tiny response claiming the maximum record counts forced a large, disproportionate heap allocation.

ares_dns_parse() is invoked from process_answer() before transaction-ID validation or question matching, so any received packet on a query's socket reaches the parser. The header counts (each up to 65535) drove ares_dns_record_rr_prealloc() -> ares_array_set_size(), which rounds the capacity up to the next power of two and allocates capacity * sizeof(ares_dns_rr_t). With ANCOUNT = NSCOUNT = ARCOUNT = 65535, this allocated on the order of ~15 MB of heap for a 12-byte input (roughly a 1,000,000:1 amplification).

From c-ares/c-ares's security advisory. Shortened; the full text is there.

Workarounds

None. Upgrade to a release containing the fix (1.34.7 or later).

Workarounds as given by c-ares/c-ares's security advisory.

Affected software

SoftwareAffected versions
c-aresServers and applications · github:c-ares/c-ares
  • Every version before 1.34.7

About c-ares

library for asynchronous DNS requests

From Wikidata, CC0 1.0.
GitHub stars
2,215GitHub, 15 Nov 2026
Forks
727GitHub, 15 Nov 2026
Latest release
v1.34.9GitHub, 15 Nov 2026
Released
20 Oct 2026GitHub
License
MIT LicenseWikidata
Written in
CWikidata
First published on GitHub
20 Mar 2010GitHub

References