CVE-2026-63387

NameCVE-2026-63387
DescriptionLibevent 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libevent (PTS)bullseye2.1.12-stable-1vulnerable
bookworm2.1.12-stable-8vulnerable
trixie2.1.12-stable-10vulnerable
forky, sid2.1.13-stable-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libeventsource(unstable)2.1.13-stable-1

Notes

https://github.com/libevent/libevent/security/advisories/GHSA-58rx-7448-jw47
Fixed by: https://github.com/libevent/libevent/commit/377b9022c3ac61aa4540b5dc4b70c60bf74c663d (release-2.1.13-stable)
Fixed by: https://github.com/libevent/libevent/commit/9877a7205ea024d0120effb040e1b8e034435407 (release-2.2.2-alpha)

Search for package or bug name: Reporting problems