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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-121",
"CWE-193",
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63387.json"
}{
"extracted_events": [
{
"introduced": "2.2.0-alpha"
},
{
"fixed": "2.2.2-alpha"
},
{
"introduced": "0"
},
{
"fixed": "2.1.13"
}
],
"source": [
"AFFECTED_FIELD",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63387.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "159443554126248192493229143747497657830",
"length": 554
},
"id": "CVE-2026-63387-09212634",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/libevent/libevent/commit/df3ecad3a040fd6d4fad4287defe113395de6fd7",
"target": {
"file": "test/regress_http.c",
"function": "http_check_transfer_encoding_test"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"270762094980121927552802584929566056086",
"37564212311334647331345684303177453724",
"168570413533780985513641597969239978857"
],
"threshold": 0.9
},
"id": "CVE-2026-63387-923050c6",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libevent/libevent/commit/df3ecad3a040fd6d4fad4287defe113395de6fd7",
"target": {
"file": "test/regress_http.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"270762094980121927552802584929566056086",
"37564212311334647331345684303177453724",
"168570413533780985513641597969239978857"
],
"threshold": 0.9
},
"id": "CVE-2026-63387-979e5bed",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/libevent/libevent/commit/79ddfb460847999b807cba76d04e73891f29c6ee",
"target": {
"file": "test/regress_http.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "159443554126248192493229143747497657830",
"length": 554
},
"id": "CVE-2026-63387-ebc5ab94",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/libevent/libevent/commit/79ddfb460847999b807cba76d04e73891f29c6ee",
"target": {
"file": "test/regress_http.c",
"function": "http_check_transfer_encoding_test"
}
}
]
"2026-09-11T08:36:42Z"