cve.bz

CVE-2020-25686 Authentication Bypass by Spoofing

3.7 lowEPSS 5.5%Fix available

Low (3.7). EPSS 5.5% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in dnsmasq before version 2.83. When receiving a query, dnsmasq does not check for an existing pending request for the same name and forwards a new request. By default, a maximum of 150 pending queries can be sent to upstream servers, so there can be at most 150 queries for the same name. This flaw allows an off-path attacker on the network to substantially reduce the number of attempts that it would have to perform to forge a reply and have it accepted by dnsmasq. This issue is mentioned in the "Birthday Attacks" section of RFC5452. 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

CVSS 3.1

3.7 low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
5.5% (unchanged from 5.5% a week ago; 5.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-358 Improperly Implemented Security Check for Standard
CWE-290 Authentication Bypass by Spoofing
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-25686 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-25686?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-25686?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-25686 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
thekelleys:dnsmasqbefore 2.83
fedoraproject:fedora32
fedoraproject:fedora33
debian:debian_linux10.0
arista:eosfrom 4.21 before 4.21.14m
arista:eosfrom 4.22 before 4.22.9m
arista:eosfrom 4.23 before 4.23.7m
arista:eosfrom 4.24 before 4.24.5m
arista:eosfrom 4.25 before 4.25.2f

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10dnsmasq2.80-1+deb10u1DSA-4844-1
Debian12, 13, 14dnsmasq2.83-1DEBIAN-CVE-2020-25686
Ubuntu16.04:LTSdnsmasq2.75-1ubuntu0.16.04.7UBUNTU-CVE-2020-25686 USN-4698-1
Ubuntu18.04:LTSdnsmasq2.79-1ubuntu0.2UBUNTU-CVE-2020-25686 USN-4698-1
Ubuntu20.04:LTSdnsmasq2.80-1.1ubuntu1.2UBUNTU-CVE-2020-25686 USN-4698-1
UbuntuPro:14.04:LTSdnsmasqno fix listedUBUNTU-CVE-2020-25686
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationdnsmasq, dnsmasq-utils, dnsmasq-debuginfo0:2.76-16.el7_9.1RHSA-2021:0153
Red Hatenterprise_linux:7::computenodednsmasq-utils, dnsmasq-debuginfo0:2.76-16.el7_9.1RHSA-2021:0153
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.3.13-20210127.0.el7_9RHSA-2021:0395
Red Hatenterprise_linux:8::appstreamdnsmasq, dnsmasq-utils, dnsmasq-debuginfo and 2 more0:2.79-13.el8_3.1RHSA-2021:0150
Red Hatrhel_aus:7.2::serverdnsmasq, dnsmasq-utils, dnsmasq-debuginfo0:2.66-14.el7_2.3RHSA-2021:0240
Red Hatrhel_aus:7.3::serverdnsmasq, dnsmasq-utils, dnsmasq-debuginfo0:2.66-21.el7_3.3RHSA-2021:0245
Red Hatrhel_aus:7.4::server, rhel_e4s:7.4::server, rhel_tus:7.4::serverdnsmasq, dnsmasq-utils, dnsmasq-debuginfo0:2.76-2.el7_4.3RHSA-2021:0156
Red Hatrhel_eus:7.6::computenode, rhel_eus:7.6::serverdnsmasq, dnsmasq-utils, dnsmasq-debuginfo0:2.76-7.el7_6.2RHSA-2021:0155
Red Hatrhel_eus:7.7::computenode, rhel_eus:7.7::serverdnsmasq, dnsmasq-utils, dnsmasq-debuginfo0:2.76-10.el7_7.2RHSA-2021:0154
Red Hatrhel_eus:8.1::appstreamdnsmasq, dnsmasq-utils, dnsmasq-debuginfo and 2 more0:2.79-6.el8_1.1RHSA-2021:0152
Red Hatrhel_eus:8.2::appstreamdnsmasq, dnsmasq-utils, dnsmasq-debuginfo and 2 more0:2.79-11.el8_2.2RHSA-2021:0151
Red Hatrhev_hypervisor:4.4::el8redhat-virtualization-host, redhat-virtualization-host-image-update0:4.4.4-20210201.0.el8_3RHSA-2021:0401
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 morednsmasq2.78-18.15.1SUSE-SU-2021:0166-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morednsmasq2.78-3.11.1SUSE-SU-2021:0162-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Basesystem 15 SP2dnsmasq2.78-7.6.1SUSE-SU-2021:0163-1
SUSELinux Enterprise Point of Sale 11 SP3dnsmasq2.78-0.16.14.1SUSE-SU-2021:14604-1
SUSELinux Enterprise Server 11 SP4-LTSSdnsmasq2.78-0.17.15.1SUSE-SU-2021:14603-1
openSUSELeap 15.1dnsmasq2.78-lp151.5.6.1openSUSE-SU-2021:0129-1
openSUSELeap 15.2dnsmasq2.78-lp152.7.3.1openSUSE-SU-2021:0124-1
openSUSETumbleweeddnsmasq2.86-1.1openSUSE-SU-2024:10721-1
Alpinev3.10, v3.11, v3.12 and 12 morednsmasq2.83-r0ALPINE-CVE-2020-25686

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Dnsmasq may be run by libvirt and/or NetworkManager. libvirt uses dnsmasq by default to provide DNS service to its guests. NetworkManager may be configured to use dnsmasq to provide DNS service to the system, if a line `dns=dnsmasq` is present in the `[main]` section of the configuration file /etc/NetworkManager/NetworkManager.conf.

In Red Hat OpenStack Platform (RHOSP) and Red Hat Virtualization (RHV), the dnsmasq package is provided by the underlying Red Hat Enterprise Linux (RHEL) product. RHOSP and RHV are therefore indirectly affected, so please ensure that the underlying RHEL dnsmasq package is updated.

Red Hat's mitigation

The impact of this flaw can be reduced by disabling the dnsmasq cache by adding `--cache-size=0` when calling dnsmasq or by adding a line with `cache-size=0` to the dnsmasq configuration file (/etc/dnsmasq.conf by default).

When using Red Hat Enterprise Linux 8.3 with libvirt through a virt:rhel module, use `virsh net-edit <network-name>` and reference https://libvirt.org/formatnetwork.html#elementsNamespaces to add the suggested option `cache-size=0`.

There is no way to customize the dnsmasq configuration generated by libvirt, when using versions of Red Hat Enterprise Linux prior to version 8.3. If dnsmasq is being run through NetworkManager, create a new file in /etc/NetworkManager/dnsmasq.d/ and add `cache-size=0` to it.

In all cases, by disabling the cache, you may experience a performance loss in your environment due to all DNS queries being forwarded to the upstream servers. Please evaluate if the mitigation is appropriate for the system’s environment before applying.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7dnsmasq-0:2.76-16.el7_9.1Fixed 2021-01-19RHSA-2021:0153
Red Hat Enterprise Linux 7.2 Advanced Update Supportdnsmasq-0:2.66-14.el7_2.3Fixed 2021-01-25RHSA-2021:0240
Red Hat Enterprise Linux 7.3 Advanced Update Supportdnsmasq-0:2.66-21.el7_3.3Fixed 2021-01-25RHSA-2021:0245
Red Hat Enterprise Linux 7.4 Advanced Update Supportdnsmasq-0:2.76-2.el7_4.3Fixed 2021-01-19RHSA-2021:0156
Red Hat Enterprise Linux 7.4 Telco Extended Update Supportdnsmasq-0:2.76-2.el7_4.3Fixed 2021-01-19RHSA-2021:0156
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutionsdnsmasq-0:2.76-2.el7_4.3Fixed 2021-01-19RHSA-2021:0156
Red Hat Enterprise Linux 7.6 Extended Update Supportdnsmasq-0:2.76-7.el7_6.2Fixed 2021-01-19RHSA-2021:0155
Red Hat Enterprise Linux 7.7 Extended Update Supportdnsmasq-0:2.76-10.el7_7.2Fixed 2021-01-19RHSA-2021:0154
Red Hat Enterprise Linux 8dnsmasq-0:2.79-13.el8_3.1Fixed 2021-01-19RHSA-2021:0150
Red Hat Enterprise Linux 8.1 Extended Update Supportdnsmasq-0:2.79-6.el8_1.1Fixed 2021-01-19RHSA-2021:0152
Red Hat Enterprise Linux 8.2 Extended Update Supportdnsmasq-0:2.79-11.el8_2.2Fixed 2021-01-19RHSA-2021:0151
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-virtualization-host-0:4.3.13-20210127.0.el7_9Fixed 2021-02-03RHSA-2021:0395
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.4.4-20210201.0.el8_3Fixed 2021-02-03RHSA-2021:0401
Red Hat Enterprise Linux 5dnsmasqOut of support scope
Red Hat Enterprise Linux 6dnsmasqOut of support scope
Red Hat Enterprise Linux 9dnsmasqNot affected
Red Hat OpenStack Platform 10 (Newton)dnsmasqNot affected
Red Hat OpenStack Platform 13 (Queens)dnsmasqNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-25686.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-21-019-01dnsmasq by Simon Kelley (Update A)2021-01-19MultipleRUGGEDCOM RM1224, SCALANCE M-800, SCALANCE S615 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-21 Exploitation of Trusted Identifiers Likelihood: High · Severity: High
  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-60 Reusing Session IDs (aka Session Replay) Likelihood: High · Severity: High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-461 Web Services API Signature Forgery Leveraging Hash Function Extension Weakness Severity: High
  • CAPEC-473 Signature Spoof
  • CAPEC-476 Signature Spoofing by Misrepresentation Likelihood: Low · Severity: High
  • CAPEC-667 Bluetooth Impersonation AttackS (BIAS) Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON