{"id":"CVE-2020-25685","aliases":["CVE-2020-25685"],"related":[],"kind":"vulnerability","state":"published","title":"A flaw was found in dnsmasq before version 2.83.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se encontró un fallo en dnsmasq versiones anteriores a 2.83.&#xa0;Al obtener una respuesta de una consulta reenviada, dnsmasq comprueba en forward.c:reply_query(), que es la consulta reenviada que coincide con la respuesta, usando solo un hash débil del nombre de la consulta.&#xa0;Debido al hash débil (CRC32 cuando dnsmasq se compila sin DNSSEC, SHA-1 cuando lo es), este fallo permite a un atacante fuera de ruta encontrar varios dominios diferentes que tengan el mismo hash, reduciendo sustancialmente el número de intentos que tendrían que realizar para falsificar una respuesta y conseguir que dnsmasq la acepte.&#xa0;Esto contrasta con RFC5452, que especifica que el nombre de la consulta es uno de los atributos de una consulta que debe ser usada para hacer coincidir una respuesta.&#xa0;Se puede abusar de este fallo para realizar un ataque de envenenamiento de caché de DNS.&#xa0;Si se encadena con CVE-2020-25684, se reduce la complejidad del ataque de un ataque con éxito","source":"nvd"}],"published":"2021-01-20T00:00:00.000Z","modified":"2026-06-17T03:07:07.567Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-326"],"affected":[{"ranges":[{"version":"dnsmasq 2.83","status":"affected"}],"product":"dnsmasq","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.83"}],"vendor":"thekelleys","product":"dnsmasq","cpe":"cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"32"},{"status":"affected","version":"33"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"4.21","fixed":"4.21.14m"},{"status":"affected","introduced":"4.22","fixed":"4.22.9m"},{"status":"affected","introduced":"4.23","fixed":"4.23.7m"},{"status":"affected","introduced":"4.24","fixed":"4.24.5m"},{"status":"affected","introduced":"4.25","fixed":"4.25.2f"}],"vendor":"arista","product":"eos","cpe":"cpe:2.3:o:arista:eos:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.jsof-tech.com/disclosures/dnspooq/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1889688","tags":["issue-tracking","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202101-17","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2021/dsa-4844","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.arista.com/en/support/advisories-notices/security-advisories/12135-security-advisory-61","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.kb.cert.org/vuls/id/434904","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-25685","url":"https://www.cve.org/CVERecord?id=CVE-2020-25685","licence":"CVE Terms of Use","modified":"2025-11-04T19:12:13.209Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-25685","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25685","licence":"Public domain","modified":"2026-06-17T03:07:07.567Z"}],"updatedAt":"2026-11-25T22:57:57.056Z","epss":{"score":0.02227,"percentile":0.83237,"date":"2026-12-01T12:00:22.000Z"}}