hickory-proto vulnerable to CPU exhaustion during message encoding due to O(n²) name compression
Moderate severity
GitHub Reviewed
Published
May 1, 2026
in
hickory-dns/hickory-dns
•
Updated May 7, 2026
Description
Published to the GitHub Advisory Database
May 7, 2026
Reviewed
May 7, 2026
Last updated
May 7, 2026
During message encoding,
hickory-proto'sBinEncoderstores pointers to labels that are candidates for name compression in aVec<(usize, Vec<u8>)>. The name compression logic then searches for matches with a linear scan.A malicious message with many records can both introduce many candidate labels, and invoke this linear scan many times. This can amplify CPU exhaustion in DoS attacks.
This is similar to CVE-2024-8508.
Reporter
Qifan Zhang, Palo Alto Networks
References