8.7high
Hickory DNS hickory-proto 0.3.1 before 0.26.1 CPU Exhaustion via BinEncoder Name Compression
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.50% (higher than 44% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-q2qq-hmj6-3wppRUSTSEC-2026-0119
Description
Hickory DNS hickory-proto from 0.3.1 before 0.26.1 contains a denial of service vulnerability in BinEncoder that allows remote attackers to exhaust CPU through quadratic-time name compression. Attackers can send malicious DNS messages with many records that add many candidate labels and trigger repeated linear scans during encoding, amplifying CPU exhaustion.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| hickory-dns hickory-dns | from 0.3.1 before 0.26.1 Not affected: 0.26.1 | CVE List |
| hickory-proto (crates.io) | from 0.3.1 before 0.26.1 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| VulnCheck | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
Classification
What each source says
CVE List
Hickory DNS hickory-proto from 0.3.1 before 0.26.1 contains a denial of service vulnerability in BinEncoder that allows remote attackers to exhaust CPU through quadratic-time name compression. Attackers can send malicious DNS messages with many records that add many candidate labels and trigger repeated linear scans during encoding, amplifying CPU exhaustion.
GitHub Advisory Database
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
RustSec Advisory Database
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.
We recommend all affected users update to hickory-proto 0.26.1 for the fix.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-123608 changed 2026-11-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q2qq-hmj6-3wpp changed 2026-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2026-0119 changed 2026-11-09 | CC0-1.0 |
| NVD | CVE-2026-123608 changed 2026-11-12 | Public domain |