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.
Qifan Zhang, Palo Alto Networks
{
"github_reviewed_at": "2026-05-07T02:59:48Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-407",
"CWE-770"
],
"nvd_published_at": null,
"severity": "MODERATE"
}