GHSA-67wc-6jq8-ghrc: Hickory DNS from 0.18 before 0.26.2 Memory Amplification DoS via RR Counts
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.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
hickory-prototo a version that resolves this vulnerability.Fixed in 0.26.2