Home / dnsmasq / dnsmasq / CVE-2020-25682
CVE-2020-25682: is it exploited, and which versions of dnsmasq are affected and fixed?
CVE-2020-25682 is a heap buffer overflow vulnerability in dnsmasq. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: dnsmasq dnsmasq 2.83 (CVE record by redhat). Fixed in 2.83 (NVD). Severity: High (8.1, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:16 UTC and NVD November 19, 2026, 08:04 UTC.
What is CVE-2020-25682?
A flaw was found in dnsmasq before 2.83. A buffer overflow vulnerability was discovered in the way dnsmasq extract names from DNS packets before validating them with DNSSEC data. An attacker on the network, who can create valid DNS replies, could use this flaw to cause an overflow with arbitrary data in a heap-allocated memory, possibly executing code on the machine. The flaw is in the rfc1035.c:extract_name() function, which writes data to the memory pointed by name assuming MAXDNAME*2 bytes are available in the buffer. However, in some code execution paths, it is possible extract_name() gets passed an offset from the base buffer, thus reducing, in practice, the number of available bytes that can be written in the buffer. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
From the CVE record by redhat, last updated November 4, 2025, 19:12 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| dnsmasq | dnsmasq 2.83 |
As the CVE record by redhat states it, last updated November 4, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| thekelleys | dnsmasq | before 2.83 | application |
| fedoraproject | fedora | 32 | operating system |
| fedoraproject | fedora | 33 | operating system |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 03:07 UTC.
How severe is CVE-2020-25682?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 8.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2020-25682 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 75.1% probability of exploitation activity in the next 30 days, percentile 99.5 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://www.jsof-tech.com/disclosures/dnspooq/ x_refsource_MISC
- https://bugzilla.redhat.com/show_bug.cgi?id=1882014 x_refsource_MISC
- 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
- [debian-lts-announce] 20210322 [SECURITY] [DLA 2604-1] dnsmasq security update mailing-list, x_refsource_MLIST
- https://www.kb.cert.org/vuls/id/434904
When was it published, and where is the official record?
- Reserved
- September 16, 2020
- Published
- January 20, 2021, 16:28 UTC
- CVE record updated
- November 4, 2025, 19:12 UTC by redhat
- NVD
- Modified, last modified June 17, 2026, 03:07 UTC
- Last checked
- CVE list November 19, 2026, 07:16 UTC; NVD November 19, 2026, 08:04 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect dnsmasq?
- May 11, 2026CVE-2026-5172 dnsmasq: out-of-bounds write (memory corruption)
- May 11, 2026CVE-2026-4893 dnsmasq: authentication bypass (improper authentication)
- May 11, 2026CVE-2026-4892 dnsmasq: heap buffer overflow
- May 11, 2026CVE-2026-4891 dnsmasq: out-of-bounds read
- May 11, 2026CVE-2026-4890 dnsmasq: infinite loop (denial of service)
- May 11, 2026CVE-2026-2291 dnsmasq: integer overflow
- Aug 29, 2022CVE-2022-0934 dnsmasq: use after free
- Apr 8, 2021CVE-2021-3448 dnsmasq: improperly Implemented Security Check for Standard
Questions about CVE-2020-25682
Is CVE-2020-25682 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 75.1% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of dnsmasq are affected by CVE-2020-25682?
dnsmasq dnsmasq 2.83, per the CVE record by redhat. The tables above give every range the sources list.
Which version fixes CVE-2020-25682?
2.83, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2020-25682?
High (8.1, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2020-25682?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.