Security Advisory

CVE-2020-25683: dnsmasq DNSSEC get_rdata Overflow

Last updated:
  • CVE-2020-25683

CVE-2020-25683 is a heap-based buffer overflow in the DNSSEC code of dnsmasq before 2.83. A forged DNS reply makes get_rdata() copy with a negative length and crash dnsmasq. NVD scores it 5.9. It needs DNSSEC compiled in and enabled: Cradlepoint, Digi and NETGEAR list affected routers, while Cisco and Siemens report their products not affected.

Vulnerability summary

CVSS base score

5.9

Medium severity

EPSS score (FIRST)

88.8%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
dnsmasq (DNSSEC validation, rfc1035.c extract_name / get_rdata)cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*before 2.83, only with DNSSEC compiled in and enabled (NVD, dnsmasq CHANGELOG 2.83)
Cradlepoint NetCloud OS (NCOS)—up to 7.21.20; DNSSEC disabled by default (CERT/CC VU#434904)
Digi International DAL-based routers and gateways—fixed in firmware 21.2.x (CERT/CC VU#434904)
NETGEAR RAX40 and RAX35—firmware before v1.0.3.88 (CERT/CC VU#434904, PSV-2020-0463)
OpenWrt dnsmasq-full package—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-25683 is a heap-based buffer overflow (CWE-122) in dnsmasq's DNSSEC code. NVD's description says it occurs "when DNSSEC is enabled and before it validates the received DNS entries". A remote attacker "who can create valid DNS replies" can exploit "the lack of length checks in rfc1035.c:extract_name()" to make the code "execute memcpy() with a negative size in get_rdata() and cause a crash in dnsmasq". The highest threat is to availability. NVD scores it 5.9 (medium), vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, for dnsmasq before 2.83 (NVD).

The dnsmasq CHANGELOG entry for 2.83 groups it with three other DNSSEC overflows and states the condition: "Any dnsmasq with DNSSEC compiled in and enabled is vulnerable to this, referenced by CVE-2020-25681, CVE-2020-25682, CVE-2020-25683 CVE-2020-25687." JSOF found the set, and CERT/CC published it on 2021-01-19 as DNSpooq.

Because DNSSEC is off in many embedded builds, the vendor statements in CERT/CC VU#434904 split cleanly:

  • Cradlepoint: NetCloud OS up to 7.21.20 is affected. DNSSEC is disabled by default; with it enabled, Cradlepoint rates the DNSSEC CVEs Medium/High, and Critical if DNS is exposed on WAN interfaces.
  • Digi International: fixed in firmware 21.2.x on all DAL-based products, including the Digi IX10, IX14, IX15, IX20, EX12, EX15, TX54, TX64 and LR54 routers and the Connect EZ, ConnectIT and AnywhereUSB Plus products.
  • NETGEAR: RAX40 and RAX35 before firmware v1.0.3.88.
  • Sierra Wireless: lists all seven DNSpooq CVEs as affected and refers to its bulletin SWI-PSA-2021-002.
  • OpenWrt: only the dnsmasq-full package, "which is not installed by default", is affected. Its advisory 2021-01-19-1 lists OpenWrt 19.07.0 to 19.07.5 and the fix in 19.07.6 (package 2.80-16.2).
  • Not affected: Arista, Check Point, Cisco, Juniper, Siemens, Sophos and Synology report CVE-2020-25683 as not affecting their products. Red Hat says RHEL 5, 6 and 7 are not affected "because they are not compiled with DNSSEC support".

Cisco's DNSpooq advisory, final at version 1.4 on 2021-08-30, says no Cisco product was found affected by CVE-2020-25681, -25682, -25683 and -25687. Those CVEs only affect installations that are "capable of validating DNSSEC data". Cisco did list access points and routers for the cache-poisoning CVEs from the same set, such as CVE-2020-25684.

So a version scan that flags every dnsmasq below 2.83 is too broad for this CVE. Our dnsmasq vulnerabilities in embedded firmware guide shows how to read the compile options and the dnssec setting from an image, and how to record a "not affected" VEX decision when DNSSEC is absent. The sibling overflows CVE-2020-25681 and CVE-2020-25687 follow the same rule.

CVE-2020-25683 is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). FIRST EPSS gives it 0.888, the 99.8th percentile, in the 2026-11-16 dataset (CISA KEV, FIRST EPSS).

To fix it, upgrade to dnsmasq 2.83 or later, or to the vendor firmware above. The Debian Security Tracker lists backports in 2.80-1+deb10u1 for buster (DSA-4844-1) and 2.76-5+deb9u3 for stretch (DLA-2604-1). OpenWrt's interim mitigation is uci set dhcp.@dnsmasq[0].dnssec='0', which trades away DNSSEC validation. Our memory corruption fix guide covers heap overflows as a class.

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

Evidence

  • Heap overflow when DNSSEC is enabled; lack of length checks in rfc1035.c:extract_name() leads to memcpy() with negative size in get_rdata(); crash; CVSS 3.1 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H); CWE-122; before 2.83. — NVD
  • 2.83: any dnsmasq with DNSSEC compiled in and enabled is vulnerable to CVE-2020-25681, -25682, -25683, -25687. — dnsmasq CHANGELOG
  • Vendor statuses: Cradlepoint NCOS up to 7.21.20 (DNSSEC off by default), Digi 21.2.x DAL products, NETGEAR RAX40/RAX35 < v1.0.3.88, Sierra Wireless affected; OpenWrt dnsmasq-full only; Arista, Check Point, Cisco, Juniper, Siemens, Sophos, Synology not affected; RHEL 5-7 not compiled with DNSSEC. — CERT/CC VU#434904
  • No Cisco products found affected by CVE-2020-25681/-25682/-25683/-25687; affects installations capable of validating DNSSEC data; v1.4 final 2021-08-30. — Cisco Security Advisory cisco-sa-dnsmasq-dns-2021-c5mrdf3g
  • DNSSEC CVEs only affect dnsmasq-full; 19.07.0-19.07.5 affected, fixed in 19.07.6 (2.80-16.2); mitigation dnssec='0'. — OpenWrt Security Advisory 2021-01-19-1
  • Fixed in buster 2.80-1+deb10u1 (DSA-4844-1) and stretch 2.76-5+deb9u3 (DLA-2604-1). — Debian Security Tracker
  • Not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.888 (99.8th percentile), dataset 2026-11-16, read 2026-11-17. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CERT/CC VU#434904 (DNSpooq)
  3. Cisco Security Advisory: DNSpooq vulnerabilities in dnsmasq
  4. OpenWrt Security Advisory 2021-01-19-1: dnsmasq multiple vulnerabilities
  5. dnsmasq CHANGELOG
  6. Debian Security Tracker
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

Does CVE-2020-25683 affect dnsmasq without DNSSEC?

No. The dnsmasq 2.83 changelog says any dnsmasq with DNSSEC compiled in and enabled is vulnerable. A build without DNSSEC, or with it compiled in but switched off, does not run the vulnerable code (per the dnsmasq CHANGELOG and NVD).

Which devices are affected by CVE-2020-25683?

Vendors in the CERT/CC note list Cradlepoint NetCloud OS up to 7.21.20, Digi DAL-based routers before 21.2.x, NETGEAR RAX40 and RAX35 before v1.0.3.88, Sierra Wireless products and OpenWrt's dnsmasq-full package. Cisco and Siemens report no affected products (per CERT/CC VU#434904 and Cisco).

Can CVE-2020-25683 lead to code execution?

NVD and the CNA describe a crash in dnsmasq, a denial of service, and score only availability impact. Its sibling CVE-2020-25681 is the DNSpooq overflow scored for code execution (per NVD).

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

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