Skip to content

`TrustAnchors` does not check name of DNSKEY

Low
divergentdave published GHSA-j2rc-wxwh-62g9 Sep 3, 2026

Package

cargo hickory-net (Rust)

Affected versions

v0.26.0-beta.1 .. v0.26.1

Patched versions

0.26.2
cargo hickory-proto (Rust)
v0.24.0 .. v0.26.0-alpha.1
None

Description

Reporter: Qifan Zhang, Palo Alto Networks

When validating DNSSEC responses, public keys are compared against trust anchors without regard for the name of the DNSKEY record they are contained in. If all DNSKEYs in an RRset are trusted public keys, verification will succeed without checking any RRSIGs. The impact of this issue is that any secure zone's DNSKEY RRset can be tampered with by replacing public keys with the root zone's public keys without detection. The temporal impact of this tampering can be extended past the initial response spoofing/control of name server by using a large TTL so that the modified DNSKEY RRset is cached for longer. Further forgery beyond the DNSKEY RRset is not possible, as that would require signatures by those keys.

Severity

Low

CVE ID

No known CVE

Weaknesses

No CWEs

Credits