This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate hickory-server

Dependencies

(27 total, 8 outdated, 2 insecure)

CrateRequiredLatestStatus
 async-trait^0.1.430.1.92up to date
 bytes^11.12.1up to date
 cfg-if^11.0.5up to date
 data-encoding^2.2.02.11.1up to date
 enum-as-inner^0.60.7.0out of date
 futures-util^0.3.50.3.34up to date
 h2^0.4.00.4.19up to date
 h3^0.0.60.0.8out of date
 h3-quinn^0.0.70.0.10out of date
 hickory-proto ⚠️^0.25.0-alpha.40.26.3insecure
 hickory-recursor ⚠️^0.25.0-alpha.40.25.2insecure
 hickory-resolver^0.25.0-alpha.40.26.3out of date
 http^1.11.5.0up to date
 ipnet^2.3.02.12.2up to date
 openssl^0.10.550.10.81up to date
 prefix-trie^0.50.10.1out of date
 rusqlite^0.320.40.2out of date
 rustls^0.23.140.23.45up to date
 serde^1.01.0.229up to date
 thiserror^22.0.21up to date
 time^0.30.3.55up to date
 tokio^1.211.53.1up to date
 tokio-openssl^0.6.00.6.5up to date
 tokio-rustls^0.260.26.6up to date
 tokio-util^0.7.90.7.19up to date
 toml^0.8.141.1.6+spec-1.1.0out of date
 tracing^0.1.300.1.44up to date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 futures-executor^0.3.50.3.34up to date
 tokio^1.211.53.1up to date
 tracing-subscriber^0.30.3.23up to date

Security Vulnerabilities

hickory-recursor: Record cache accepts AUTHORITY section NS from sibling zone via parent-pool zone-context elevation

RUSTSEC-2026-0106

The Hickory DNS project's experimental hickory-recursor crate's record cache (DnsLru) stores records from DNS responses keyed by each record's own (name, type), not by the query that triggered the response. cache_response() in crates/recursor/src/lib.rs chains ANSWER, AUTHORITY, and ADDITIONAL sections into one record iterator before insertion. The bailiwick filter it applies uses the zone context of the NS pool that serviced the lookup, not the zone being queried.

This creates a cross-zone poisoning path. When Hickory builds the NS pool for attacker.poc. it uses the parent poc. NS pool (ns.zone() = "poc."). If the poc. nameserver under the attacker's control includes in its response's AUTHORITY section a record for a sibling zone like victim.poc. NS ns.evil.poc., the bailiwick check is_subzone("poc.", "victim.poc.") passes (victim.poc. is a subdomain of poc.). The record is stored under (victim.poc., NS) in the shared cache.

Subsequently, any client querying a name in victim.poc. causes Hickory to build its NS pool from the poisoned cache entry, routing queries to the attacker's nameserver (ns.evil.poc.) rather than to the legitimate nameserver for victim.poc.. The legitimate NS for that zone receives zero queries.

This issue is fixed in hickory-resolver 0.26.0 with the recursor feature through an architectural change to response-level caching: responses are stored keyed by the originating query (name, type). A response to (attacker.poc. NS) is stored only under that key and cannot affect the (victim.poc., NS) cache entry.

We believe this issue has been present in all published versions of the experimental hickory-recursor crate, which has now been folded into the hickory-resolver crate under the non-default recursor feature flag. The hickory-recursor crate will not receive any updates going forward and all users should migrate to hickory-resolver with the recursor feature.

hickory-proto: NSEC3 closest-encloser proof validation enters unbounded loop on cross-zone responses

RUSTSEC-2026-0118

The NSEC3 closest-encloser proof validation in hickory-proto's DnssecDnsHandle walks from the QNAME up to the SOA owner name, building a list of candidate encloser names. The iterator used assumes the QNAME is a descendant of the SOA owner, terminating only when the current candidate equals the SOA name. When the SOA in a response's authority section is not an ancestor of the QNAME, the loop stalls at the DNS root and never terminates, repeatedly calling Name::base_name() and pushing newly allocated Name and hashed-name entries into the candidate Vec.

The bug is reachable by any caller of DnssecDnsHandle — including the resolver, recursor, and client — when built with the dnssec-ring or dnssec-aws-lc-rs feature and configured to perform DNSSEC validation. It is triggered while validating a NoData or NXDomain response whose authority section contains an SOA record from a zone other than an ancestor of the QNAME, on a code path that requires NSEC3 closest-encloser proof. In practice this can be reached through an insecure CNAME chain that crosses zone boundaries into a DNSSEC-signed zone returning NoData, but the minimum condition is just a mismatched SOA owner on a response requiring NSEC3 validation.

A debug_assert_ne!(name, Name::root()) guards the loop body, so debug builds abort with a panic on the first iteration past the root. Release builds compile the assertion out and run the loop unbounded, allocating until the process exhausts available memory (OOM). A reachable upstream attacker who can return such a response can therefore crash a debug-built validator or exhaust memory on a release-built one.

The affected code was migrated from hickory-proto to hickory-net as part of the 0.26.0 release. The hickory-proto 0.26.x release no longer offers DnssecDnsHandle and so we recommend all affected users update to hickory-net 0.26.1 when the implementation of that type is required.

hickory-proto: CPU exhaustion during message encoding due to O(n²) name compression

RUSTSEC-2026-0119

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.