Impact
Unbound processes DNS replies with the control field 'unwanted-reply-threshold'; when enabled, any reply from an IP that does not match the source IP 0.0.0.0/::0 is counted as an unwanted reply (CWE‑184). In this vulnerability, a malicious delegation can supply in‑bailiwick glue records of 0.0.0.0 or ::0. The kernel routes those packets back over loopback, causing Unbound to receive replies from 127.0.0.1. Because the source IP does not match 0.0.0.0/::0, each reply is considered spoofed, incrementing the counter. Once the counter reaches the configured 'unwanted‑reply‑threshold', Unbound performs a defensive full‑cache flush. The counter resets after each flush, allowing an attacker to repeatedly trigger cache clearing without sending spoofed packets.
Affected Systems
NLnet Labs Unbound versions up to and including 1.25.1 with 'unwanted-reply-threshold' enabled are vulnerable. Versions 1.25.2 and later contain the fix.
Risk and Exploitability
The CVSS score of 5.3 indicates moderate severity. The EPSS score is <1 %, reflecting a low probability but not zero exploitation likelihood. The flaw is not listed in the CISA KEV catalog. An attacker who controls a delegation that returns 0.0.0.0/::0 glue can trigger the cache clear by sending ordinary DNS queries to the vulnerable Unbound instance. The attack requires remote control of the delegation but no spoofed traffic, making it relatively easy to perform from any network that can reach the server.
OpenCVE Enrichment