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
- 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).
Workarounds
None. Upgrade to a release containing the fix (1.34.7 or later).
Affected software
| Software | Affected versions |
|---|---|
c-aresServers and applications · github:c-ares/c-ares |
|
About c-ares
library for asynchronous DNS requests
- 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
Vulnerabilities in c-ares
- In our list
- 28
- Published in the last 12 months
- 15
- Critical, last 12 months
- 0
- High, last 12 months
- 3
- Known exploited
- 0
- GHSA-wrgc-prmw-27xhc-ares query cache can return an answer that was obtained using different EDNS optionsLow 3.7 20 Oct 2026
- GHSA-cfcv-8v2j-qj6rc-ares can return an address containing uninitialized memory for a numeric IPv6 name with a prefix lengthMedium 4.8 20 Oct 2026
- GHSA-ph6c-3cvx-mq6vc-ares can write past a buffer when ares_dup() or ares_save_options() runs while another thread changes the serversMedium 5.3 20 Oct 2026
- GHSA-grv7-fq5q-9vfcc-ares can free a cached DNS answer while the application is still reading itMedium 5.9 20 Oct 2026
- GHSA-pj7p-v3cw-hq66c-ares can use a freed server record when an application changes its DNS servers from a callbackMedium 5.9 20 Oct 2026
- GHSA-v33j-65h4-4ch8c-ares can use freed memory when an application cancels lookups from a server-status callbackMedium 5.9 20 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-69186
- GitHub Advisory Database https://github.com/advisories/GHSA-jv8r-gqr9-68wj
- github.com https://github.com/c-ares/c-ares/security/advisories/GHSA-jv8r-gqr9-68wj