{"id":"CVE-2026-63387","aliases":["CVE-2026-63387"],"related":[],"kind":"vulnerability","state":"published","title":"Libevent: Off-by-one stack buffer overflow in dnsname_to_labels via crafted DNS server response","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Libevent es una biblioteca de notificación de eventos. Antes de 2.1.13 y 2.2.2-alpha, libevent tiene un desbordamiento de búfer de pila por un byte en evdns.c cuando dnsname_to_labels formatea un registro DNS que contiene un nombre al final del búfer de pila de 64 KB asignado por evdns_server_request_format_response. La verificación de la etiqueta final permite que j más label_len más uno sea igual a buf_len, después de lo cual el byte nulo de terminación se escribe en buf[buf_len]. Una respuesta de servidor DNS manipulada que contiene datos PTR, CNAME, MX, NS o SOA puede desencadenar la escritura fuera de límites de un byte y bloquear o corromper el proceso. Este problema está solucionado en las versiones 2.1.13 y 2.2.2-alpha.","source":"nvd"}],"published":"2026-08-20T17:53:41.863Z","modified":"2026-10-26T10:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-121","CWE-193","CWE-787"],"affected":[{"ranges":[{"version":">= 2.2.0-alpha, < 2.2.2-alpha","status":"affected"},{"version":"< 2.1.13","status":"affected"}],"vendor":"libevent","product":"libevent","source":"cvelist"}],"references":[{"url":"https://github.com/libevent/libevent/security/advisories/GHSA-58rx-7448-jw47","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libevent/libevent/releases/tag/release-2.1.13-stable","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libevent/libevent/releases/tag/release-2.2.2-alpha","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-25T15:11:49.042Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63387","url":"https://www.cve.org/CVERecord?id=CVE-2026-63387","licence":"CVE Terms of Use","modified":"2026-08-25T15:12:12.129Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63387","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63387","licence":"Public domain","modified":"2026-10-26T10:10:00.140Z"}],"updatedAt":"2026-11-25T22:59:34.679Z","epss":{"score":0.00416,"percentile":0.3787,"date":"2026-12-01T12:00:22.000Z"}}