CyberRota Analysis
AI-GeneratedLibevent versions prior to 2.1.13 and 2.2.2-alpha are vulnerable to an off-by-one stack buffer overflow in the evdns.c file, which can be exploited by a malicious DNS server response to cause a crash or process corruption. This vulnerability primarily affects applications utilizing the Libevent library for DNS handling, making it critical for developers and system administrators using these versions to upgrade immediately to mitigate potential service disruptions. Organizations relying on DNS services should prioritize patching to prevent exploitation of this high-severity vulnerability.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Libevent is an event notification library. Prior to 2.1.13 and 2.2.2-alpha, libevent has an off-by-one stack buffer overflow in evdns.c when dnsname_to_labels formats a name-bearing DNS record at the end of the 64 KB stack buffer allocated by evdns_server_request_format_response. The final-label check permits j plus label_len plus one to equal buf_len, after which the terminating null byte is written to buf[buf_len]. A crafted DNS server response containing PTR, CNAME, MX, NS, or SOA data can trigger the one-byte out-of-bounds write and crash or corrupt the process. This issue is fixed in versions 2.1.13 and 2.2.2-alpha.