A flaw was found in dnsmasq before version 2.83. When getting a reply from a forwarded query, dnsmasq checks in forward.c:reply_query(), which is the forwarded query that matches the reply, by only using a weak hash of the query name. Due to the weak hash (CRC32 when dnsmasq is compiled without DNSSEC, SHA-1 when it is) this flaw allows an off-path attacker to find several different domains all having the same hash, substantially reducing the number of attempts they would have to perform to forge a reply and get it accepted by dnsmasq. This is in contrast with RFC5452, which specifies that the query name is one of the attributes of a query that must be used to match a reply. This flaw could be abused to perform a DNS Cache Poisoning attack. If chained with CVE-2020-25684 the attack complexity of a successful attack is reduced. The highest threat from this vulnerability is to data integrity.
CVE-2020-25685
Score 3.7 from GitHub Security Advisory published 2022-05-24. NVD baseline CVSS 3.7; sources differ by 0.0.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 3.7
- EG Score
- 3.7(medium)
- EPSS
- 80.2%
- KEV
- Not listed
Published
January 20, 2021
Last Modified
November 4, 2025
References (15)
- secalert@redhathttps://bugzilla.redhat.com/show_bug.cgi?id=1889688
- secalert@redhathttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/
- secalert@redhathttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/
- secalert@redhathttps://security.gentoo.org/glsa/202101-17
- secalert@redhathttps://www.arista.com/en/support/advisories-notices/security-advisories/12135-security-advisory-61
- secalert@redhathttps://www.debian.org/security/2021/dsa-4844
- secalert@redhathttps://www.jsof-tech.com/disclosures/dnspooq/
- af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=1889688
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/
- af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202101-17
- af854a3a-2127-422b-91ae-364da2661108https://www.arista.com/en/support/advisories-notices/security-advisories/12135-security-advisory-61
- af854a3a-2127-422b-91ae-364da2661108https://www.debian.org/security/2021/dsa-4844
- af854a3a-2127-422b-91ae-364da2661108https://www.jsof-tech.com/disclosures/dnspooq/
- af854a3a-2127-422b-91ae-364da2661108https://www.kb.cert.org/vuls/id/434904
Patch Availability(12)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | dnsmasq-utils (2.75-1ubuntu0.16.04.7) @ xenial | 2026-05-26 | ubuntu |
| redhat | redhat-virtualization-host-0:4.4.4-20210201.0.el8_3 | 2021-02-03 | redhat |
| redhat | redhat-virtualization-host-0:4.3.13-20210127.0.el7_9 | 2021-02-03 | redhat |
| redhat | dnsmasq-0:2.66-14.el7_2.3 | 2021-01-25 | redhat |
| redhat | dnsmasq-0:2.66-21.el7_3.3 | 2021-01-25 | redhat |
| redhat | dnsmasq-0:2.76-10.el7_7.2 | 2021-01-19 | redhat |
| redhat | dnsmasq-0:2.79-13.el8_3.1 | 2021-01-19 | redhat |
| redhat | dnsmasq-0:2.79-11.el8_2.2 | 2021-01-19 | redhat |
| redhat | dnsmasq-0:2.76-2.el7_4.3 | 2021-01-19 | redhat |
| redhat | dnsmasq-0:2.76-7.el7_6.2 | 2021-01-19 | redhat |
| redhat | dnsmasq-0:2.79-6.el8_1.1 | 2021-01-19 | redhat |
| redhat | dnsmasq-0:2.76-16.el7_9.1 | 2021-01-19 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(13)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Microsoft MSRCCVE-2020-256852021-01-29
A flaw was found in dnsmasq before version 2.83. When getting a reply from a forwarded query dnsmasq checks in forward.c:reply_query() which is the forwarded query that matches the reply by only using a weak hash of the query name. Due to the weak hash (CRC32 when dnsmasq is compiled without DNSSEC SHA-1 when it is) this flaw allows an off-path attacker to find several different domains all having the same hash substantially reducing the number of attempts they would have to perform to forge a reply and get it accepted by dnsmasq. This is in contrast with RFC5452 which specifies that the query name is one of the attributes of a query that must be used to match a reply. This flaw could be abused to perform a DNS Cache Poisoning attack. If chained with CVE-2020-25684 the attack complexity of a successful attack is reduced. The highest threat from this vulnerability is to data integrity.
- Red HatRHSA-2021:0150MODERATE2021-01-19
RHSA-2021:0150 — Moderate
- Red HatRHSA-2021:0151MODERATE2021-01-19
RHSA-2021:0151 — Moderate
- Red HatRHSA-2021:0152MODERATE2021-01-19
RHSA-2021:0152 — Moderate
- Red HatRHSA-2021:0153MODERATE2021-01-19
RHSA-2021:0153 — Moderate
- Red HatRHSA-2021:0154MODERATE2021-01-19
RHSA-2021:0154 — Moderate
- Red HatRHSA-2021:0155MODERATE2021-01-19
RHSA-2021:0155 — Moderate
- Red HatRHSA-2021:0156MODERATE2021-01-19
RHSA-2021:0156 — Moderate
- Red HatRHSA-2021:0240MODERATE2021-01-19
RHSA-2021:0240 — Moderate
- Red HatRHSA-2021:0245MODERATE2021-01-19
RHSA-2021:0245 — Moderate
- Red HatRHSA-2021:0395MODERATE2021-01-19
RHSA-2021:0395 — Moderate
- Red HatRHSA-2021:0401MODERATE2021-01-19
RHSA-2021:0401 — Moderate
- UbuntuUSN-4698-1MEDIUM
Dnsmasq vulnerabilities
Data Freshness Timeline
(refreshed 11× in last 7d / 44× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 09:48 UTCOSV refresh
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
Show 55 moreShow fewer
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 15:43 UTCOSV refresh
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 21:50 UTCEG score recompute
- 2026-05-26 21:50 UTCVendor advisory
- 2026-05-26 21:50 UTCGHSA enrichment
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-24 16:48 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-358 · CWE-326
- CVE-2018-0268EG 10.0EPSS 92%CRITICAL
- CVE-2013-7287EG 9.8CRITICAL
- CVE-2013-2166EG 9.8CRITICAL
- CVE-2011-4121EG 9.8CRITICAL
- CVE-2018-0448EG 9.8CRITICAL
- CVE-2018-15124EG 9.8CRITICAL
- CVE-2018-1275EG 9.8EPSS 99%CRITICAL
- CVE-2018-1270EG 9.8EPSS 100%CRITICAL
- CVE-2017-1000486EG 9.8 KEVEPSS 100%CRITICAL
- CVE-2017-11317EG 9.8 KEVEPSS 100%CRITICAL
Frequently asked(5)
What is CVE-2020-25685?
When was CVE-2020-25685 disclosed?
Is CVE-2020-25685 actively exploited?
What is the CVSS score of CVE-2020-25685?
How do I remediate CVE-2020-25685?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2020-25685
Is Your Infrastructure Affected by CVE-2020-25685?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.