CVE-2020-25687: Dnsmasq vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-17 06:13 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by redhat, published 2021-01-20).
Weakness: CWE-122
How it can be exploited
Public exploit evidence (Exploit Observer)
Exploit Observer found 2 research write-ups naming this CVE.
See all 14 references on Exploit Observer
Live scores
- EPSS
- 0.940
very likely to be attacked soon - VEDAS
- 0.987
strong exploit evidence - On CISA KEV
- Not listed
- Detection rule
- No public rule yet
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Dnsmasq | version dnsmasq 2.83 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
How to fix it
Vendor guidance:
- FEDORA-2021-84440e87ba (vendor-advisory, x_refsource_FEDORA)
- GLSA-202101-17 (vendor-advisory, x_refsource_GENTOO)
- DSA-4844 (vendor-advisory, x_refsource_DEBIAN)
- FEDORA-2021-2e4c3d5a9d (vendor-advisory, x_refsource_FEDORA)
How to detect it
There is no open VEDAS detection rule for this bug yet. It is listed on the detection gaps page if CISA has confirmed attacks.
References
Vendor advisories and patches
- FEDORA-2021-84440e87ba (vendor-advisory, x_refsource_FEDORA)
- GLSA-202101-17 (vendor-advisory, x_refsource_GENTOO)
- DSA-4844 (vendor-advisory, x_refsource_DEBIAN)
- FEDORA-2021-2e4c3d5a9d (vendor-advisory, x_refsource_FEDORA)
Other references
- https://www.jsof-tech.com/disclosures/dnspooq/ (x_refsource_MISC)
- https://bugzilla.redhat.com/show_bug.cgi?id=1891568 (x_refsource_MISC)
- [debian-lts-announce] 20210322 [SECURITY] [DLA 2604-1] dnsmasq security update (mailing-list, x_refsource_MLIST)
- https://www.kb.cert.org/vuls/id/434904
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, cve-scores (EPSS and VEDAS), Exploit Observer. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.
Supporting partners