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.
Weakness
- CWE-326: Inadequate Encryption Strength
Timeline
- 2021-01-20Published by the CNA00:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| thekelleys dnsmasq | before 2.83fixed in 2.83 | 2.83 |
| arista eos | from 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.2f | 4.21.14m4.22.9m4.23.7m4.24.5m4.25.2f |
| debian debian_linux | 10.0no fix listed | not listed |
| fedoraproject fedora | 32no fix listed33no fix listed | not listednot listed |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1889688
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/
- https://security.gentoo.org/glsa/202101-17
- https://www.debian.org/security/2021/dsa-4844
- https://www.arista.com/en/support/advisories-notices/security-advisories/12135-security-advisory-61
- https://www.jsof-tech.com/disclosures/dnspooq/
- https://www.kb.cert.org/vuls/id/434904
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2020-25685'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2020-25685'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2020-25685'curl 'https://api.contrastcyber.com/cve_products/CVE-2020-25685'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).