GHSA-q2qq-hmj6-3wpp: hickory-proto vulnerable to CPU exhaustion during message encoding due to O(n²) name compression
During message encoding, hickory-proto's BinEncoder stores pointers to labels that are candidates for name compression in a Vec ). 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.
Published May 7, 2026
Affected packages
hickory-proto
- Ecosystem
- Rust (crates.io)
- Affected
- >= 0.3.1, <= 0.26.0
- Fixed in
- 0.26.1
- Check
cargo tree -i hickory-proto
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
During message encoding, hickory-proto's BinEncoder stores pointers to labels that are candidates for name compression in a Vec<(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
Credited to qifan-sailboat.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesGHSA-3v94-mw7p-v465
hickory-proto: NSEC3 closest-encloser proof validation enters unbounded loop on cross-zone responses
high8.7No fixMay 7, 2026CVE-2025-25188
Hickory DNS's DNSSEC validation may accept broken authentication chains
medium5.7Feb 10, 2025GHSA-v7pc-74h8-xq2h
Hickory DNS failure to verify self-signed RRSIG for DNSKEYs
mediumFeb 10, 2025
