hickory-resolver: Unbounded TC-retry loop in `NameServerPool::try_send` (resource-exhaustion DoS)GHSA-6w6g-hm98-mhgm
Fix: hickory-dns/hickory-dns#3871GHSA-6w6g-hm98-mhgm is a security vulnerability in hickory-resolver. A fix is available for hickory-resolver — see the affected versions and patch details below.
Real-World Exposure
hickory-resolverReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
Description
When the hickory-resolver name server pool implementation receives an upstream response with the TC (truncated) header bit set, it re-queues the request to the same nameserver to retry with UDP transport disabled. However, the retry arm never inspects the transport that just answered and carries no iteration counter. An authoritative server that sets TC=1 on every available transport keeps the resolver spinning on one persistent TCP connection until the 5s per-request wall-clock deadline expires.
Reporter
Qifan Zhang, Palo Alto Networks
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | hickory-resolver | ≥ 0.26.0-beta.1&&< 0.26.2 | 0.26.2cargo update -p hickory-resolver --precise 0.26.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for hickory-resolver, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update hickory-resolver to 0.26.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-6w6g-hm98-mhgm is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-6w6g-hm98-mhgm in your dependencies?
Find it across crates.io, including transitive dependencies.