CVE-2020-25684: DNS response validation flaw in dnsmasq
- Vendors
- Debian ProjectThekelleysArista NetworksFedora Project
CVE-2020-25684 is a DNS response validation vulnerability in dnsmasq versions before 2.83 and part of the DNSpooq vulnerability set. The reply_query() function checks whether a response's destination address and port are associated with pending forwarded queries, but does not use those attributes to identify the exact query being answered. Consequently, the response's address/port and query ID are not validated together against the same outstanding query, contrary to RFC 5452. This reduces the number of attempts required to have a forged response accepted and enables DNS cache poisoning. Combining it with CVE-2020-25685 or CVE-2020-25686 further reduces attack complexity.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises DNS resolution integrity by allowing forged DNS records to enter the resolver's cache. Clients relying on the poisoned cache may be redirected to attacker-controlled services. The vulnerability does not itself establish arbitrary code execution or a direct confidentiality or availability impact; the memory-corruption vulnerabilities in the broader DNSpooq set are separate issues.
Mitigation
If you can’t patch tonight, do this now.
Disable dnsmasq caching to prevent persistent cache poisoning, recognizing the resulting increase in upstream DNS traffic and potential latency. Alternatively, disable the affected DNS proxy and configure clients to use another DNS resolver. On affected Siemens SCALANCE M-800, RUGGEDCOM RM1224, SCALANCE S615, and SCALANCE SC-600 devices, disable the DNS proxy through the device configuration. For SCALANCE W1750D, block incoming UDP port 53 only if OpenDNS, Captive Portal, and URL redirection functionality are not used. Restrict access to affected DNS services and monitor for unusually large bursts of DNS queries.
Remediation
Patch, then assume compromise.
Upgrade dnsmasq to version 2.83 or later, or install a vendor update containing the fix. For affected Siemens products, upgrade RUGGEDCOM RM1224, SCALANCE M-800, and SCALANCE S615 to V6.4 or later, and SCALANCE SC-600 to V2.1.3 or later. No solution is expected for SCALANCE W1750D; apply the applicable workaround or consider replacement. For affected Sierra Wireless devices, install the product-specific corrected firmware when available.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2020-25684 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2020-25684 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2020-25684?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2020-25684, the earliest disclosed Jan 23, 2021.
- Is there a patch for CVE-2020-25684?
- Upgrade dnsmasq to version 2.83 or later, or install a vendor update containing the fix. For affected Siemens products, upgrade RUGGEDCOM RM1224, SCALANCE M-800, and SCALANCE S615 to V6.4 or later, and SCALANCE SC-600 to V2.1.3 or later.
- What products are affected by CVE-2020-25684?
- Thekelleys Dnsmasq, Debian Project Debian Linux, Arista Networks Eos, and Fedora Project Fedora.
- How severe is CVE-2020-25684?
- CVE-2020-25684 has a CVSS v3.1 score of 3.7 (Low) and an EPSS score of 4.2% (91st percentile) as of Oct 25, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.