Skip to main content
Menu
Advisories

Missing IPv4-Mapped IPv6 address canonicalization

GHSA-4JWP-XJWM-333GPublished Updated GitHub

Description

When checking IP addresses against a resolver's answer address filter, a recursor's do not query filters, or a server's client allow list, IPv4-Mapped-IPv6 addresses were not canonicalized. For the resolver use-case, this could result in addresses not being properly filtered from the response message. For the recursor use case, this could result in connections being made to nameservers that should have been denied. For the server use-case, this could have allowed clients to access the server that should have been denied (if library code was providing IPv6 listen sockets that did not specify set_only_v6(true) - the hickory-dns binary is not affected).

Users of hickory-proto 0.26.0 .. 0.26.1 built with the non-default access-control feature that relied on the AccessControlSet are affected. Users of hickory-resolver 0.26.0 .. 0.26.1 configured using ResolverOpts that set deny_answers are affected. Similarly users of hickory-resolver 0.26.0 .. 0.26.1 with the non-default recursor feature that set RecursorOptions with deny_answers or deny_server are affected. Users of the (now-defunct) hickory-recursor crate 0.25.0-alpha.3 ... 0.26.0-alpha.1 that set RecursorOptions with deny_answers or deny_server are affected. Lastly, library users of hickory-server 0.25.0-alpha.1 ... 0.26.1 that use Server::with_access() are affected if register_socket() is also used with IPv6 sockets that do not specify set_only_v6(true).

Reporter:

Qifan Zhang, Palo Alto Networks

Affected versions

References

GitHub · hickory-dns/hickory-dns