Hickory DNS memory exhaustion in wire-format message parsing
hickory-dns
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| hickory-proto crates.io |
|
|
Original description
The DNS wire-format message parser in hickory-proto (Hickory DNS) 0.18 before 0.26.2 preallocates record vectors sized by the untrusted ANCOUNT, NSCOUNT, and ARCOUNT header fields before reading record data. Remote attackers can send a UDP datagram, or a spoofed response to a client/resolver, with these counts set to 65535, forcing about 18MB of allocation per message.
From the CVE record · VulnCheck
References
- github.com/hickory-dns/hickory-dns/security/advisories/GHSA-67wc-6jq8-ghrc
- vulncheck.com/advisories/hickory-dns-from-0.18-before-0.26.2-memory-amplification-dos-via-rr-counts
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123570.json
- nvd.nist.gov/vuln/detail/CVE-2026-123570
- crates.io/crates/hickory-proto
- rustsec.org/advisories/RUSTSEC-2026-0491.html
- github.com/hickory-dns/hickory-dns/commit/280c0e5c4e3002d73ba0762835ef82272d1d33a6