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 dnsnametolabels formats a name-bearing DNS record at the end of the 64 KB stack buffer allocated by evdnsserverrequestformatresponse. The final-label check permits j plus labellen plus one to equal buflen, 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.
{
"cwe_ids": [
"CWE-121",
"CWE-193",
"CWE-787"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63387.json"
}{
"source": [
"AFFECTED_FIELD",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "2.2.0-alpha"
},
{
"fixed": "2.2.2-alpha"
},
{
"introduced": "0"
},
{
"fixed": "2.1.13"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63387.json"
[
{
"signature_type": "Function",
"digest": {
"function_hash": "159443554126248192493229143747497657830",
"length": 554.0
},
"target": {
"function": "http_check_transfer_encoding_test",
"file": "test/regress_http.c"
},
"source": "https://github.com/libevent/libevent/commit/df3ecad3a040fd6d4fad4287defe113395de6fd7",
"signature_version": "v1",
"id": "CVE-2026-63387-09212634",
"deprecated": false
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"270762094980121927552802584929566056086",
"37564212311334647331345684303177453724",
"168570413533780985513641597969239978857"
]
},
"target": {
"file": "test/regress_http.c"
},
"source": "https://github.com/libevent/libevent/commit/df3ecad3a040fd6d4fad4287defe113395de6fd7",
"signature_version": "v1",
"id": "CVE-2026-63387-923050c6",
"deprecated": false
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"270762094980121927552802584929566056086",
"37564212311334647331345684303177453724",
"168570413533780985513641597969239978857"
]
},
"target": {
"file": "test/regress_http.c"
},
"source": "https://github.com/libevent/libevent/commit/79ddfb460847999b807cba76d04e73891f29c6ee",
"signature_version": "v1",
"id": "CVE-2026-63387-979e5bed",
"deprecated": false
},
{
"signature_type": "Function",
"digest": {
"function_hash": "159443554126248192493229143747497657830",
"length": 554.0
},
"target": {
"function": "http_check_transfer_encoding_test",
"file": "test/regress_http.c"
},
"source": "https://github.com/libevent/libevent/commit/79ddfb460847999b807cba76d04e73891f29c6ee",
"signature_version": "v1",
"id": "CVE-2026-63387-ebc5ab94",
"deprecated": false
}
]
"2026-08-22T09:15:43Z"