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.
Published: 2026-08-20
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability involves an off‑by‑one error in the dnsname_to_labels function of libevent’s evdns.c. The error allows a crafted DNS record to write a single byte beyond a 64 KB stack buffer, potentially overflowing the buffer and corrupting adjacent memory. The resulting out‑of‑bounds write can cause the process to crash or, with sufficient control, corrupt memory in a way that may be exploitable for further attacks. The weakness is reflected in CWE‑121, CWE‑193, and CWE‑787 identifiers for buffer overflows and improper bounds checking.

Affected Systems

The flaw appears in libevent versions prior to release‑2.1.13 and the 2.2.x series before release‑2.2.2‑alpha. Any installation of libevent 2.1.x or 2.2.x that has not been upgraded to the patched releases is vulnerable.

Risk and Exploitability

The vulnerability carries a CVSS score of 7, indicating medium to high severity. No EPSS data is available, and the flaw is not listed in the CISA KEV catalog. The attack vector requires a DNS server capable of sending a crafted response containing PTR, CNAME, MX, NS, or SOA records. The crafted response can be delivered over the network, implying remote reachability. An attacker who can force the target to resolve a name or otherwise provoke evdns to format a response can trigger the overflow. The impact ranges from denial of service to potential memory corruption that could be leveraged by a skilled adversary.

Generated by OpenCVE AI on August 21, 2026 at 01:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade libevent to release‑2.1.13 or later, or to release‑2.2.2‑alpha or later to apply the fixed logic.
  • Restart all services that link against libevent so that the updated library is loaded and the vulnerability is no longer present.
  • If an upgrade is not immediately possible, isolate the affected services from untrusted DNS traffic or block malformed responses with a firewall or DNS filtering solution.

Generated by OpenCVE AI on August 21, 2026 at 01:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Tue, 25 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 21 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Libevent Project
Libevent Project libevent
Vendors & Products Libevent Project
Libevent Project libevent

Thu, 20 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
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.
Title Libevent: Off-by-one stack buffer overflow in dnsname_to_labels via crafted DNS server response
Weaknesses CWE-121
CWE-193
CWE-787
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H'}


Subscriptions

Libevent Project Libevent
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-25T15:12:12.129Z

Reserved: 2026-07-16T17:39:30.171Z

Link: CVE-2026-63387

cve-icon Vulnrichment

Updated: 2026-08-25T15:12:06.142Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-20T18:16:36.723

Modified: 2026-09-09T21:19:49.197

Link: CVE-2026-63387

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-20T17:53:41Z

Links: CVE-2026-63387 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T13:01:04Z

Weaknesses