CVE catalog

CVE-2020-25685

dnsmasq: CVE-2020-25685

[CVE catalog]

Severity
Medium · CVSS 5.4CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
2.23% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiandnsmasqsid2.93-3fixed
Debiandnsmasqforky2.93-3fixed
Debiandnsmasqtrixie2.91-1+deb13u2fixed
Debiandnsmasqtrixie-security2.91-1+deb13u1fixed
Debiandnsmasqbookworm2.90-4~deb12u2fixed
Debiandnsmasqbookworm-security2.90-4~deb12u2fixed
Alpinednsmasq3.102.83-r0fixed
Alpinednsmasq3.112.83-r0fixed
Alpinednsmasq3.122.83-r0fixed
Alpinednsmasq3.132.83-r0fixed
Alpinednsmasq3.142.83-r0fixed
Alpinednsmasq3.152.83-r0fixed
Alpinednsmasq3.162.83-r0fixed
Alpinednsmasq3.172.83-r0fixed
Alpinednsmasq3.182.83-r0fixed
Alpinednsmasq3.192.83-r0fixed
Alpinednsmasq3.202.83-r0fixed
Alpinednsmasq3.212.83-r0fixed
Alpinednsmasq3.222.83-r0fixed
Alpinednsmasq3.232.83-r0fixed
Alpinednsmasq3.242.83-r0fixed
Ubuntudnsmasqpro2.66-4ubuntu1vulnerable
Ubuntudnsmasqpro2.67-1vulnerable
Ubuntudnsmasqpro2.68-1vulnerable
Ubuntudnsmasqpro2.68-1ubuntu0.1vulnerable
Ubuntudnsmasqpro2.68-1ubuntu0.2vulnerable
Ubuntudnsmasqpro2.68-1ubuntu0.2+esm1vulnerable
Ubuntudnsmasqpro2.68-1ubuntu0.2+esm2vulnerable
Ubuntudnsmasqpro2.68-1ubuntu0.2+esm3vulnerable
Ubuntudnsmasqpro2.68-1ubuntu0.2+esm5vulnerable
Ubuntudnsmasqpro2.68-1ubuntu0.2+esm6vulnerable
Ubuntudnsmasq16.042.75-1vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.1vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.2vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.3vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.4vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.5vulnerable
Ubuntudnsmasq16.042.75-1ubuntu0.16.04.7fixed
Ubuntudnsmasq18.042.78-1vulnerable
Ubuntudnsmasq18.042.78-3vulnerable
Ubuntudnsmasq18.042.79-1vulnerable
Ubuntudnsmasq18.042.79-1ubuntu0.2fixed
Ubuntudnsmasq20.042.80-1ubuntu2vulnerable
Ubuntudnsmasq20.042.80-1ubuntu4vulnerable
Ubuntudnsmasq20.042.80-1.1ubuntu1vulnerable
Ubuntudnsmasq20.042.80-1.1ubuntu1.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiandnsmasqsourcesid2.83-1not yet assignedNot reportedNot reported
Debiandnsmasqsourceforky2.83-1not yet assignedNot reportedNot reported
Debiandnsmasqsourcetrixie2.83-1not yet assignedNot reportedNot reported
Debiandnsmasqsourcebookworm2.83-1not yet assignedNot reportedNot reported
Alpinednsmasqapk3.102.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.112.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.122.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.132.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.142.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.152.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.162.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.172.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.182.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.192.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.202.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.212.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.222.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.232.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Alpinednsmasqapk3.242.83-r0Not reportedALPINE-CVE-2020-25685Not reported
Ubuntudnsmasqdeb16.042.75-1ubuntu0.16.04.7Not reportedUBUNTU-CVE-2020-25685Not reported
Ubuntudnsmasqdeb18.042.79-1ubuntu0.2Not reportedUBUNTU-CVE-2020-25685Not reported
Ubuntudnsmasqdeb20.042.80-1.1ubuntu1.2Not reportedUBUNTU-CVE-2020-25685Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [dnsmasq]Unknown
    Details (4)
    • 2.90-4~deb12u2 · all · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · all · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

  • [dnsmasq-base]Unknown

    Source package: [dnsmasq]

    Details (4)
    • 2.90-4~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

  • Source package: [dnsmasq]

    Details (4)
    • 2.90-4~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

  • [dnsmasq-utils]Unknown

    Source package: [dnsmasq]

    Details (4)
    • 2.90-4~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

    • 2.90-4~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12

[Debian 13 (Trixie)]

  • [dnsmasq]Unknown
    Details (4)
    • 2.91-1+deb13u1 · all · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · all · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · all · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · all · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

  • [dnsmasq-base]Unknown

    Source package: [dnsmasq]

    Details (4)
    • 2.91-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

  • Source package: [dnsmasq]

    Details (4)
    • 2.91-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

  • [dnsmasq-utils]Unknown

    Source package: [dnsmasq]

    Details (4)
    • 2.91-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

    • 2.91-1+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 2.83-1

      dsa · dnsmasq · debian · 13

Observed:

References