Heap-based Buffer Overflow Affecting dnsmasq package, versions [,2.93)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.81% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Heap-based Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-DNSMASQ-16674401
  • published14 May 2026
  • disclosed9 May 2026
  • creditAsim Viladi Oglu Manizada, Royce M

Introduced: 9 May 2026

CVE-2026-4892  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade dnsmasq to version 2.93 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the helper process when processing DHCPv6 client identifiers, due to hex-encoding attacker-controlled content into a fixed-size buffer without proper length validation. An attacker can achieve arbitrary code execution as root by sending specially crafted DHCPv6 packets from a malicious VM guest within the virtual network. This is only exploitable if the --dhcp-script option is enabled, which is the default in libvirt virtual network configurations on affected systems.

CVSS Base Scores

version 4.0
version 3.1