Code executionin CVE-2020-25682.
No public exploit found; not on exploited lists.
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.
- No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.
Not confirmed by any source yet: affected versions not confirmed; fixed version not confirmed; severity not scored yet. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 16 Sep 2020CVE ID reserved by redhat.
- 20 Jan 2021Published in the CVE List.
- 4 Nov 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Same weakness: Heap-based buffer overflow
- www.jsof-tech.com x_refsource_MISC
- bugzilla.redhat.com x_refsource_MISC
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- security.gentoo.org vendor-advisory, x_refsource_GENTOO
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.debian.org mailing-list, x_refsource_MLIST
- www.kb.cert.org
Patchminder. CVE-2020-25682: Code execution in CVE-2020-25682. https://patchminder.com/cve/cve-2020-25682/ (accessed 5 December 2026).