Remediating new DNSSEC resource exhaustion vulnerabilities
Feb 29, 2024Vicky Shrestha, Anbang Wen

Summary
This post details the implementation of specific resource exhaustion mitigations for DNSSEC vulnerabilities Keytrap and NSEC3 iteration count. For Keytrap, Cloudflare implemented limits on the number of keys accepted at a zone cut, and added signature validation limits per RRSET and per resolution task. For NSEC3, a limit on total hash calculations per resolution task was added. Both mitigations involve failing resolution for queries exceeding these limits and returning an Extended DNS Error (EDE) code. Metrics were also added to detect exploitation attempts.
More from the DNS Infrastructure & Naming Conventions trail
- The keys to the Internet change on October 11, 2026. Are you ready?
- 1.1.1.1 now supports post-quantum DNSSEC, all 2,420 bytes of it
- How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache
- BGP ORIGIN attribute manipulation and its impact on the Internet
- Cloudflare Internal DNS is now generally available