Security Advisory

CVE-2020-25686: dnsmasq DNSpooq Birthday Attack

Last updated:
  • CVE-2020-25686

CVE-2020-25686 is a DNS cache-poisoning weakness in dnsmasq before 2.83: it forwarded every repeat of a pending query separately, up to 150 by default, so one forged reply had many more chances to match. NVD scores it 3.7. It affects every build variant, and Siemens, Cisco, Juniper and OpenWrt name affected devices.

Vulnerability summary

CVSS base score

3.7

Low severity

EPSS score (FIRST)

5.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2020-25686 · Source: NVD

Affected components

ComponentCPEVersion range
dnsmasq (DNS forwarding of repeated queries)cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*before 2.83, all build variants (NVD, dnsmasq CHANGELOG 2.83, OpenWrt advisory 2021-01-19-1)
Siemens RUGGEDCOM RM1224, SCALANCE M-800 and SCALANCE S615—fixed in V6.4 (Siemens ProductCERT SSA-646763)
Siemens SCALANCE SC-600—fixed in V2.1.3 (Siemens ProductCERT SSA-646763)
Siemens SCALANCE W1750Dcpe:2.3:o:siemens:scalance_w1750d_firmware:*:*:*:*:*:*:*:*no remediation available; mitigation only (Siemens ProductCERT SSA-646763)
Cisco access points, IR800 and CGR1000 routers, Wireless Gateway for LoRaWAN, Meraki MR and MS—per product (cisco-sa-dnsmasq-dns-2021-c5mrdf3g)
OpenWrt dnsmasq, dnsmasq-dhcpv6 and dnsmasq-full packages—OpenWrt 19.07.0 to 19.07.5; fixed in 19.07.6 (OpenWrt advisory 2021-01-19-1)

What does this mean for affected devices?

CVE-2020-25686 is the birthday-attack part of DNSpooq. NVD's description says that when dnsmasq receives a query it "does not check for an existing pending request for the same name and forwards a new request." By default "a maximum of 150 pending queries can be sent to upstream servers, so there can be at most 150 queries for the same name." That lets an off-path attacker "substantially reduce the number of attempts" needed to forge an accepted reply, as the "Birthday Attacks" section of RFC 5452 describes. Chaining it with CVE-2020-25684 lowers the attack complexity further. NVD records CWE-290 and scores it 3.7 (low), vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N, for dnsmasq before 2.83 (NVD).

The dnsmasq CHANGELOG for 2.83 explains the attack plainly. With every identical query forwarded independently, "an answer for any of the forwarded queries will be accepted and cached", so "the chance of a successful attack is therefore multiplied by the number of repeats of the query." Since 2.83, dnsmasq detects repeated queries and answers all waiting clients when the first query completes.

This CVE does not depend on DNSSEC or other build options. OpenWrt's advisory 2021-01-19-1 says CVE-2020-25684 and CVE-2020-25686 affect all three of its dnsmasq package variants, with OpenWrt 19.07.0 to 19.07.5 affected and 19.07.6 fixed. Siemens ProductCERT SSA-646763, at V1.3 since 2021-05-11, lists it for its industrial devices with CWE-330 and a CVSS score of 4.0, calling it a lack of "sufficient entropy" for multiple queries of the same name:

  • RUGGEDCOM RM1224 and SCALANCE M-800: fixed in V6.4. Siemens notes that the DNS proxy is enabled by default on both.
  • SCALANCE S615: fixed in V6.4; DNS proxy disabled by default.
  • SCALANCE SC-600: fixed in V2.1.3; DNS proxy disabled by default.
  • SCALANCE W1750D: no remediation is available, and revision 1.3 of 2021-05-11 "clarified that a solution for SCALANCE W1750D is not expected". If OpenDNS, Captive Portal or URL redirection are unused, Siemens recommends blocking incoming access to port 53/UDP.

Cisco's DNSpooq advisory lists Aironet and Catalyst access points, the CGR1000 and IR800 routers, the Wireless Gateway for LoRaWAN and Meraki MR and MS as susceptible to the cache-poisoning CVEs. In CERT/CC VU#434904, Juniper reports Mist access points and the SRX Wi-Fi Mini-PIM affected. Fujitsu reports INTELLIEDGE among its affected products, and Sophos reports its RED devices affected.

Our dnsmasq vulnerabilities in embedded firmware guide ranks the three cache-poisoning CVEs together: medium on any pre-2.83 forwarder, higher when DNS is reachable from WAN. The companion pages are CVE-2020-25684 and CVE-2020-25685. For spoofing defences as a class, see our authentication bypass fix guide.

CVE-2020-25686 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.0547, the 93rd percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS).

To fix it, upgrade to dnsmasq 2.83 or later, or install the vendor firmware above. The Debian Security Tracker shows buster fixed in 2.80-1+deb10u1 (DSA-4844-1). Stretch was left unfixed because the change was judged "invasive" with regression risk. Until then, OpenWrt's mitigation lowers the forwarding limit from 150 to 50 (dnsforwardmax='50') and disables caching (cachesize='0'). The --dns-forward-max option in the dnsmasq man page sets the same limit on other builds.

How to fix this class of issueThis advisory's weakness class is Authentication bypass. Our practical guide covers how to detect, fix, verify and disclose it: How to fix authentication bypass in embedded firmware.

Evidence

  • No check for an existing pending request for the same name; up to 150 pending queries by default; birthday attacks per RFC 5452; chaining with CVE-2020-25684 reduces complexity; CWE-290; CVSS 3.1 3.7; before 2.83. — NVD
  • 2.83: repeated identical queries were forwarded independently, multiplying the attacker's chance; new behaviour stores repeat clients and answers them when the first query completes. — dnsmasq CHANGELOG
  • CVE-2020-25684 and -25686 affect all OpenWrt dnsmasq variants; 19.07.0-19.07.5 affected, fixed in 19.07.6; mitigations dnsforwardmax=50, cachesize=0. — OpenWrt Security Advisory 2021-01-19-1
  • RM1224, M-800, S615 fixed in V6.4; SC-600 in V2.1.3; W1750D no remediation; CWE-330; CVSS 4.0; insufficient entropy for multiple queries of the same RRNAME. — Siemens ProductCERT SSA-646763
  • Products susceptible to DNSpooq cache poisoning: Aironet/Catalyst APs, CGR1000, IR800, LoRaWAN gateway, Meraki MR/MS. — Cisco Security Advisory cisco-sa-dnsmasq-dns-2021-c5mrdf3g
  • Juniper Mist APs and SRX Wi-Fi Mini-PIM affected via DNS; Fujitsu INTELLIEDGE and Sophos RED affected. — CERT/CC VU#434904
  • --dns-forward-max sets the maximum number of concurrent DNS queries, default 150. — dnsmasq man page
  • Buster fixed in 2.80-1+deb10u1 (DSA-4844-1); stretch ignored (minor, invasive, regressions). — Debian Security Tracker
  • Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.0547 (93rd percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Siemens ProductCERT SSA-646763: DNSpooq - Dnsmasq vulnerabilities in SCALANCE and RUGGEDCOM devices
  3. Cisco Security Advisory: DNSpooq vulnerabilities in dnsmasq
  4. CERT/CC VU#434904 (DNSpooq)
  5. OpenWrt Security Advisory 2021-01-19-1: dnsmasq multiple vulnerabilities
  6. dnsmasq CHANGELOG
  7. dnsmasq man page
  8. Debian Security Tracker
  9. CISA KEV
  10. FIRST EPSS

Frequently asked questions

Does CVE-2020-25686 depend on DNSSEC?

No. It sits in how dnsmasq forwards repeated queries, and OpenWrt reports that it affects all of its dnsmasq package variants, including the default one without DNSSEC (per OpenWrt and the dnsmasq CHANGELOG).

What is the birthday attack in CVE-2020-25686?

The attacker makes dnsmasq forward the same name many times, up to 150 by default. Each forwarded copy opens another query ID and port that a forged reply can match, multiplying the attacker's odds (per NVD and the dnsmasq CHANGELOG).

Which industrial devices are affected by CVE-2020-25686?

Siemens lists RUGGEDCOM RM1224, SCALANCE M-800, S615, SC-600 and W1750D. Cisco lists the IR800 and CGR1000 routers and the Wireless Gateway for LoRaWAN among others (per Siemens ProductCERT SSA-646763 and Cisco).

Is CVE-2020-25686 in the CISA KEV catalog?

No, not as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.0547, the 93rd percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).