BreachSpiderVerified, not vibes

CVE-2020-25682 in Debian Linux and 2 more products

High 8.1 Fix available

A flaw was found in dnsmasq before 2.83. A buffer overflow vulnerability was discovered in the way dnsmasq extract names from DNS packets before validating them with DNSSEC data. An attacker on the network, who can create valid DNS replies, could use this flaw to cause an overflow with arbitrary data in a heap-alloc...

Affects 3 products from 3 vendors. Facts below cite their sources.

CVSS 3.18.1
EPSS75.1%
EPSS percentile100th
FixAvailable

Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Debian Debian Linux 9.0 10.0
Fedoraproject Fedora 32 33
Thekelleys Dnsmasq < 2.83

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

A flaw was found in dnsmasq before 2.83. A buffer overflow vulnerability was discovered in the way dnsmasq extract names from DNS packets before validating them with DNSSEC data. An attacker on the network, who can create valid DNS replies, could use this flaw to cause an overflow with arbitrary data in a heap-allocated memory, possibly executing code on the machine. The flaw is in the rfc1035.c:extract_name() function, which writes data to the memory pointed by name assuming MAXDNAME*2 bytes are available in the buffer. However, in some code execution paths, it is possible extract_name() gets passed an offset from the base buffer, thus reducing, in practice, the number of available bytes that can be written in the buffer. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2020-25682
BreachSpider IDBS-2021-GLOBAL-149116-H
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2021-01-20
Last modified2025-11-04
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-122: Heap-Based Buffer Overflow

Buffer overflow corrupting dynamically allocated heap memory, exploitable for arbitrary code execution.

CWE-787: Out-of-Bounds Write

Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.

Related attack patterns (CAPEC)

CAPEC-92 Forced Integer Overflow via CWE-122

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A buffer overflow vulnerability exists in dnsmasq versions before 2.83, allowing an attacker to execute arbitrary code by crafting malicious DNS replies.

An attacker on the network can exploit this vulnerability by sending specially crafted DNS packets that cause a buffer overflow in dnsmasq's handling of DNS names before DNSSEC validation.

Questions

What is CVE-2020-25682?

A buffer overflow vulnerability exists in dnsmasq versions before 2.83, allowing an attacker to execute arbitrary code by crafting malicious DNS replies.

What is the CVSS score for CVE-2020-25682?

CVE-2020-25682 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 75.1%.

Is CVE-2020-25682 actively exploited?

No confirmed active exploitation of CVE-2020-25682 as of 2026-05-30.

How do I remediate CVE-2020-25682?

Priority: IMMEDIATE.

What systems are affected by CVE-2020-25682?

CVE-2020-25682 affects Debian Debian Linux; Fedoraproject Fedora; Thekelleys Dnsmasq.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-11-04.