{"api_version":"1","generated_at":"2026-04-22T16:03:53+00:00","cve":"CVE-2020-25685","urls":{"html":"https://cve.report/CVE-2020-25685","api":"https://cve.report/api/cve/CVE-2020-25685.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-25685","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-25685"},"summary":{"title":"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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2021-01-20 16:15:00","updated_at":"2023-11-07 03:20:00"},"problem_types":["CWE-326"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/","name":"FEDORA-2021-84440e87ba","refsource":"FEDORA","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] Fedora 33 Update: dnsmasq-2.83-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.arista.com/en/support/advisories-notices/security-advisories/12135-security-advisory-61","name":"https://www.arista.com/en/support/advisories-notices/security-advisories/12135-security-advisory-61","refsource":"MISC","tags":[],"title":"Security Advisory 0061 - Arista","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/","name":"FEDORA-2021-2e4c3d5a9d","refsource":"FEDORA","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] Fedora 32 Update: dnsmasq-2.84-1.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/","name":"FEDORA-2021-84440e87ba","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: dnsmasq-2.83-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/","name":"FEDORA-2021-2e4c3d5a9d","refsource":"","tags":[],"title":"[SECURITY] Fedora 32 Update: dnsmasq-2.84-1.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202101-17","name":"GLSA-202101-17","refsource":"GENTOO","tags":["Third Party Advisory"],"title":"Dnsmasq: Multiple vulnerabilities (GLSA 202101-17) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.jsof-tech.com/disclosures/dnspooq/","name":"https://www.jsof-tech.com/disclosures/dnspooq/","refsource":"MISC","tags":["Third Party Advisory"],"title":"DNSPOOQ - JSOF","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1889688","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1889688","refsource":"MISC","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"1889688 – (CVE-2020-25685) CVE-2020-25685 dnsmasq: loose query name check in reply_query() makes forging replies easier for an off-path attacker","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2021/dsa-4844","name":"DSA-4844","refsource":"DEBIAN","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-4844-1 dnsmasq","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-25685","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25685","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"25685","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"arista","cpe5":"eos","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"25685","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"25685","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"25685","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"32","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"25685","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"25685","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"32","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"25685","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"25685","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"thekelleys","cpe5":"dnsmasq","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"25685","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"thekelleys","cpe5":"dnsmasq","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-25685","qid":"296069","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 31.88.5 Missing (CPUJAN2021)"},{"cve":"CVE-2020-25685","qid":"352293","title":"Amazon Linux Security Update for dnsmasq: AL2012-2021-334"},{"cve":"CVE-2020-25685","qid":"377140","title":"Alibaba Cloud Linux Security Update for dnsmasq (ALINUX3-SA-2021:0009)"},{"cve":"CVE-2020-25685","qid":"377442","title":"Alibaba Cloud Linux Security Update for dnsmasq (ALINUX2-SA-2021:0002)"},{"cve":"CVE-2020-25685","qid":"43821","title":"Arista EOS Domain Name System (DNS) cache poisoning Vulnerability (SA0061)"},{"cve":"CVE-2020-25685","qid":"500150","title":"Alpine Linux Security Update for dnsmasq"},{"cve":"CVE-2020-25685","qid":"503800","title":"Alpine Linux Security Update for dnsmasq"},{"cve":"CVE-2020-25685","qid":"670173","title":"EulerOS Security Update for dnsmasq (EulerOS-SA-2021-1673)"},{"cve":"CVE-2020-25685","qid":"670301","title":"EulerOS Security Update for dnsmasq (EulerOS-SA-2021-1775)"},{"cve":"CVE-2020-25685","qid":"690442","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for dnsmasq (5b5cf6e5-5b51-11eb-95ac-7f9491278677)"},{"cve":"CVE-2020-25685","qid":"730121","title":"McAfee Web Gateway Multiple Vulnerabilities (WP-3484,WP-3744,WP-3745,WP-3746,WP-3747,WP-3793,WP-3800)"},{"cve":"CVE-2020-25685","qid":"750407","title":"OpenSUSE Security Update for dnsmasq (openSUSE-SU-2021:0129-1)"},{"cve":"CVE-2020-25685","qid":"750409","title":"OpenSUSE Security Update for dnsmasq (openSUSE-SU-2021:0124-1)"},{"cve":"CVE-2020-25685","qid":"900068","title":"CBL-Mariner Linux Security Update for dnsmasq 2.79"},{"cve":"CVE-2020-25685","qid":"903378","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for dnsmasq (3816)"},{"cve":"CVE-2020-25685","qid":"940396","title":"AlmaLinux Security Update for dnsmasq (ALSA-2021:0150)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2020-25685","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"dnsmasq","version":{"version_data":[{"version_value":"dnsmasq 2.83"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-326"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://www.jsof-tech.com/disclosures/dnspooq/","url":"https://www.jsof-tech.com/disclosures/dnspooq/"},{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1889688","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1889688"},{"refsource":"FEDORA","name":"FEDORA-2021-84440e87ba","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/"},{"refsource":"GENTOO","name":"GLSA-202101-17","url":"https://security.gentoo.org/glsa/202101-17"},{"refsource":"DEBIAN","name":"DSA-4844","url":"https://www.debian.org/security/2021/dsa-4844"},{"refsource":"FEDORA","name":"FEDORA-2021-2e4c3d5a9d","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/"},{"refsource":"MISC","name":"https://www.arista.com/en/support/advisories-notices/security-advisories/12135-security-advisory-61","url":"https://www.arista.com/en/support/advisories-notices/security-advisories/12135-security-advisory-61"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2021-01-20 16:15:00","lastModifiedDate":"2023-11-07 03:20:00","problem_types":["CWE-326"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW"},"exploitabilityScore":2.2,"impactScore":1.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:thekelleys:dnsmasq:*:*:*:*:*:*:*:*","versionEndExcluding":"2.83","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:arista:eos:*:*:*:*:*:*:*:*","versionStartIncluding":"4.21","versionEndExcluding":"4.21.14m","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:arista:eos:*:*:*:*:*:*:*:*","versionStartIncluding":"4.22","versionEndExcluding":"4.22.9m","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:arista:eos:*:*:*:*:*:*:*:*","versionStartIncluding":"4.23","versionEndExcluding":"4.23.7m","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:arista:eos:*:*:*:*:*:*:*:*","versionStartIncluding":"4.24","versionEndExcluding":"4.24.5m","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:arista:eos:*:*:*:*:*:*:*:*","versionStartIncluding":"4.25","versionEndExcluding":"4.25.2f","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"25685","Ordinal":"187102","Title":"CVE-2020-25685","CVE":"CVE-2020-25685","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"25685","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"25685","Ordinal":"2","NoteData":"2021-01-20","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"25685","Ordinal":"3","NoteData":"2022-01-25","Type":"Other","Title":"Modified"}]}}}