CVE-2020-25685

Description

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.

Severity
LOW
CVSS v3
3.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N · source nvd
Exploit chance (EPSS)
2.227%
chance of exploitation in the next 30 days
higher than 83% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-01-20Published by the CNA00:00 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
thekelleys dnsmasqbefore 2.83fixed in 2.832.83
arista eosfrom 4.21 before 4.21.14mfixed in 4.21.14mfrom 4.22 before 4.22.9mfixed in 4.22.9mfrom 4.23 before 4.23.7mfixed in 4.23.7mfrom 4.24 before 4.24.5mfixed in 4.24.5mfrom 4.25 before 4.25.2ffixed in 4.25.2f4.21.14m4.22.9m4.23.7m4.24.5m4.25.2f
debian debian_linux10.0no fix listednot listed
fedoraproject fedora32no fix listed33no fix listednot listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources