Advisory

RUSTSEC-2026-0119

Also known as: CVE-2026-123608, GHSA-q2qq-hmj6-3wpp

Summary

CPU exhaustion during message encoding due to O(n²) name compression

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-05-01 12:00 UTC
Modified
2026-11-09 09:21 UTC

Affected packages and fixes

hickory-proto

crates.io · All systems

Affected

  • introduced 0.3.1, fixed 0.26.1 (semver)

Fixed versions

0.26.1

Fix

  • Fixed version 0.26.1
    cargo update -p hickory-proto --precise 0.26.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC BY 4.0

This record names its own licence, CC BY 4.0, which differs from the source's (CC0-1.0).

Sources & licences