{"id":"CVE-2026-63387","published":"2026-08-20T17:53:41Z","modified":"2026-08-25T15:12:12Z","title":"Libevent: Off-by-one stack buffer overflow in dnsname_to_labels via crafted DNS server response","vendor":"libevent","product":"libevent","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00416,"percentile":0.27526,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"},{"id":"CWE-193","name":"Off-by-one Error"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/libevent/libevent/security/advisories/GHSA-58rx-7448-jw47","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libevent/libevent/releases/tag/release-2.1.13-stable","tags":["x_refsource_MISC"]},{"url":"https://github.com/libevent/libevent/releases/tag/release-2.2.2-alpha","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":5.51},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"libevent","affectedVersions":[{"vendor":"libevent","product":"libevent","versions":[">= 2.2.0-alpha, < 2.2.2-alpha","< 2.1.13"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-25T15:11:49.042805Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-63508","exploited":false,"provenance":"source"}}