← Terug naar overzicht

A critical off-by-one stack buffer overflow vulnerability exists in libevent versions prior to 2.1.13 and 2.2.2-alpha. The flaw resides in evdns.c within the dnsname_to_labels function, which incorrectly permits a terminating null byte to be written one position beyond the end of a 64 KB stack buffer. The vulnerability can be triggered by a crafted DNS server response containing PTR, CNAME, MX, NS, or SOA record types. Successful exploitation can lead to process crash or memory corruption. The root cause is a faulty boundary check in the final-label validation logic inside evdns_server_request_format_response. The issue affects any application or system relying on libevent for DNS resolution. Fixes are available in libevent versions 2.1.13-stable and 2.2.2-alpha. Users are strongly advised to upgrade to patched versions immediately.

Affected products

  • libevent < 2.1.13
  • libevent < 2.2.2-alpha

Related CVE's

  • CVE-2026-63387

Categories

  • Network Infrastructure
  • Supply Chain & Dependencies