Affected versions
Version ranges need review.
Rust / Cargohickory-proto
- Affected versions
- >=0.3.1 <0.26.1
- Fixed version
- 0.26.1
Rust / Cargohickory-proto
- Affected versions
- >= 0.3.1, <= 0.26.0
- Fixed version
- 0.26.1
Exploitation
Description
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
Links
- https://crates.io/crates/hickory-proto
- https://github.com/advisories/GHSA-q2qq-hmj6-3wpp
- https://github.com/hickory-dns/hickory-dns
- https://github.com/hickory-dns/hickory-dns/pull/3613
- https://github.com/hickory-dns/hickory-dns/security/advisories/GHSA-q2qq-hmj6-3wpp
- https://rustsec.org/advisories/RUSTSEC-2026-0119.html
Credits
- qifan-sailboat

