Skip to content
Emerging threatsMedium

CVE-2020-25687Dnsmasq Heap Buffer Overflow

A heap-based buffer overflow was discovered in dnsmasq when DNSSEC is enabled and before it validates the received DNS entries.

Published Jan 21, 2021 · Updated Oct 26, 2026 · Also known as ALPINE-CVE-2020-25687, CLEANSTART-2026-YQ60071, DEBIAN-CVE-2020-25687, UBUNTU-CVE-2020-25687

Key Facts

Patch immediately
  • CVE-2020-25687 is a medium-severity vulnerability (CVSS 5.9 v3.1) affecting Dnsmasq (Thekelleys), Debian Linux, Fedora (Fedoraproject) and 1 more product.
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 94% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Dnsmasq 0:2.79-11.el8_2.2, Dnsmasq 2.75-1ubuntu0.16.04.7, Dnsmasq 2.76-5+deb9u3.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

5.9

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS (30-day exploit likelihood)

94%

Higher than 99.8% of all scored CVEs

Exploit maturity

None known

ATLAS score

33/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

Description

A flaw was found in dnsmasq before version 2.83. A heap-based buffer overflow was discovered in dnsmasq when DNSSEC is enabled and before it validates the received DNS entries. This flaw allows a remote attacker, who can create valid DNS replies, to cause an overflow in a heap-allocated memory.

This flaw is caused by the lack of length checks in rfc1035.c:extract_name(), which could be abused to make the code execute memcpy() with a negative size in sort_rrset() and cause a crash in dnsmasq, resulting in a denial of service. The highest threat from this vulnerability is to system availability.

Affected Products

109 affected entries in total
ProductAffected versionsFixed in
DnsmasqThekelleys>= dnsmasq 2.832.83
Debian LinuxDebian10.0, 9.0n/a
FedoraFedoraproject32, 33n/a
dnsmasq-utilsoracleSee advisory2.79-13.el8_3.1

Patched Releases

Dnsmasq

0:2.79-11.el8_2.2, 2.75-1ubuntu0.16.04.7, 2.76-5+deb9u3, 2.78-0.16.14.1, 2.78-0.17.15.1, 2.78-18.15.1, 2.78-3.11.1, 2.78-7.6.1, 2.78-lp151.5.6.1, 2.78-lp152.7.3.1, 2.79-13.el8_3.1, 2.79-1ubuntu0.2, 2.80-1.1ubuntu1.2, 2.80-1+deb10u1, 2.82-1.ph1, 2.82-1.ph2, 2.82-1.ph3, 2.82-5.oe1, 2.83-1, 2.83-1.mga7, 2.83-r0, 2.85-1, 2.83

dnsmasq-utils

2.78-18.15.1, 2.78-lp151.5.6.1, 2.78-lp152.7.3.1, 2.79-13.el8_3.1

Timeline

  1. Publicly disclosed

    Jan 21, 2021

  2. Last updated

    Oct 26, 2026

Weakness Type

  • CWE-122 Heap-based Buffer Overflow

FAQ

Common Questions.

Is CVE-2020-25687 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.