CVE-2020-25686

LOW

dnsmasq < 2.83 - DNS Cache Poisoning via Birthday Attack

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2020-25686. PoCs published by knqyf263.

AI-analyzed exploit summary This repository contains a proof-of-concept exploit for DNS cache poisoning in dnsmasq (CVE-2020-25686). The exploit leverages DNS spoofing to poison the cache, redirecting queries for a target domain to an attacker-controlled IP.

Description

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.

Exploits (1)

nomisec WORKING POC 100 stars
by knqyf263 · poc
https://github.com/knqyf263/dnspooq

This repository contains a proof-of-concept exploit for DNS cache poisoning in dnsmasq (CVE-2020-25686). The exploit leverages DNS spoofing to poison the cache, redirecting queries for a target domain to an attacker-controlled IP.

Classification
Working Poc 95%
Attack Type
Other
Complexity
Moderate
Reliability
Racy
Target: dnsmasq (versions affected by CVE-2020-25686)
No auth needed
Prerequisites: Network access to the target DNS server · Ability to send spoofed DNS responses
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory x_refsource_misc
https://www.jsof-tech.com/disclosures/dnspooq/
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=1890125
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/202101-17
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2021/dsa-4844
Third Party Advisory, US Government Resource
https://www.kb.cert.org/vuls/id/434904

Scores

CVSS v3 3.7
EPSS 0.0491
EPSS Percentile 91.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Details

CWE
CWE-290 CWE-358
Status published
Products (5)
arista/eos 4.21 - 4.21.14m
debian/debian_linux 10.0
fedoraproject/fedora 32
fedoraproject/fedora 33
thekelleys/dnsmasq < 2.83
Published Jan 20, 2021
Tracked Since Feb 18, 2026