Vulnerability · Published Aug 20, 2026 · Assigned by GitHub_M
CVE-2026-63387Libevent: Off-by-one stack buffer overflow in dnsname_to_labels via crafted DNS server response
High 7.0
In plain English
A high-severity stack buffer overflow in libevent from libevent. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | libevent | 2.1.13-1.el10_2 | ALSA-2026:67909 |
| AlmaLinux:8 | libevent | 2.1.8-11.el8_10 | ALSA-2026:67908 |
| AlmaLinux:9 | libevent | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| AlmaLinux:10 | libevent-devel | 2.1.13-1.el10_2 | ALSA-2026:67909 |
| AlmaLinux:8 | libevent-devel | 2.1.8-11.el8_10 | ALSA-2026:67908 |
| AlmaLinux:9 | libevent-devel | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| AlmaLinux:10 | libevent-doc | 2.1.13-1.el10_2 | ALSA-2026:67909 |
| AlmaLinux:8 | libevent-doc | 2.1.8-11.el8_10 | ALSA-2026:67908 |
| AlmaLinux:9 | libevent-doc | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| Debian:12 | libevent | 2.1.12-stable-8+deb12u1 | DEBIAN-CVE-2026-63387 |
| Debian:13 | libevent | 2.1.13-stable-1~deb13u1 | DEBIAN-CVE-2026-63387 |
| Debian:14 | libevent | 2.1.13-stable-1 | DEBIAN-CVE-2026-63387 |
| Rocky Linux:10 | libevent | 0:2.1.13-1.el10_2 | RLSA-2026:67909 |
| Rocky Linux:8 | libevent | 0:2.1.8-11.el8_10 | RLSA-2026:67908 |
| Rocky Linux:9 | libevent | 0:2.1.13-1.el9_8 | RLSA-2026:67910 |
| Ubuntu:22.04:LTS | libevent | no fix listed | UBUNTU-CVE-2026-63387 |
| Ubuntu:22.04:LTS | libevent | 2.1.12-stable-1ubuntu0.2 | USN-8840-1 |
| Ubuntu:24.04:LTS | libevent | 2.1.12-stable-9ubuntu2.2 | USN-8840-1 |
| Ubuntu:24.04:LTS | libevent | no fix listed | UBUNTU-CVE-2026-63387 |
| Ubuntu:26.04:LTS | libevent | 2.1.12-stable-10ubuntu0.2 | USN-8840-1 |
| Ubuntu:26.04:LTS | libevent | 2.1.12-stable-10ubuntu0.2 | UBUNTU-CVE-2026-63387 |
Affected products (as reported)
Weakness: CWE-121, CWE-193, CWE-787 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
References
- https://github.com/libevent/libevent/security/advisories/GHSA-58rx-7448-jw47 x_refsource_CONFIRM
- https://github.com/libevent/libevent/releases/tag/release-2.1.13-stable x_refsource_MISC
- https://github.com/libevent/libevent/releases/tag/release-2.2.2-alpha x_refsource_MISC