CVE-2026-63387Libevent: Off-by-one stack buffer overflow in dnsname_to_labels via crafted DNS server…
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libevent | Fixed | 2.1.12-stable-10ubuntu0.2 | UBUNTU-CVE-2026-63387 |
| Ubuntu 24.04 | libevent | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-63387 | |
| Ubuntu 22.04 | libevent | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-63387 | |
| Ubuntu 20.04 | libevent | Fix pending | UBUNTU-CVE-2026-63387 | |
| Ubuntu 18.04 | libevent | Fix pending | UBUNTU-CVE-2026-63387 | |
| Ubuntu 16.04 | libevent | Fix pending | UBUNTU-CVE-2026-63387 | |
| Ubuntu 14.04 | libevent | Fix pending | UBUNTU-CVE-2026-63387 | |
| Debian 14 | libevent | Fixed | 2.1.13-stable-1 | DEBIAN-CVE-2026-63387 |
| Debian 13 | libevent | Fixed | 2.1.13-stable-1~deb13u1 | DEBIAN-CVE-2026-63387 |
| Debian 12 | libevent | Fixed | 2.1.12-stable-8+deb12u1 | DEBIAN-CVE-2026-63387 |
| Red Hat Enterprise Linux 10 | libevent | Fixed | 0:2.1.13-1.el10_2 | RHSA-2026:67909 |
| Red Hat Enterprise Linux 10 | libevent-devel | Fixed | 0:2.1.13-1.el10_2 | RHSA-2026:67909 |
| Red Hat Enterprise Linux 10 | libevent-doc | Fixed | 0:2.1.13-1.el10_2 | RHSA-2026:67909 |
| Red Hat Enterprise Linux 9 | libevent | Fixed | 0:2.1.13-1.el9_8 | RHSA-2026:67910 |
| Red Hat Enterprise Linux 9 | libevent-devel | Fixed | 0:2.1.13-1.el9_8 | RHSA-2026:67910 |
| Red Hat Enterprise Linux 9 | libevent-doc | Fixed | 0:2.1.13-1.el9_8 | RHSA-2026:67910 |
| Red Hat Enterprise Linux 8 | libevent | Fixed | 0:2.1.8-11.el8_10 | RHSA-2026:67908 |
| Red Hat Enterprise Linux 8 | libevent-devel | Fixed | 0:2.1.8-11.el8_10 | RHSA-2026:67908 |
| Red Hat Enterprise Linux 8 | libevent-doc | Fixed | 0:2.1.8-11.el8_10 | RHSA-2026:67908 |
| Red Hat Enterprise Linux 7 | libevent | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | libevent-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | libevent-doc | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | libevent | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | libevent-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | libevent-doc | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | libevent-headers | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | libevent2 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libevent2-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | libevent2-doc | Will not fix Will not fix | ||
| AlmaLinux 10 | libevent-doc | Fixed | 2.1.13-1.el10_2 | ALSA-2026:67909 |
| AlmaLinux 9 | libevent | Fixed | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| AlmaLinux 9 | libevent-devel | Fixed | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| AlmaLinux 9 | libevent-doc | Fixed | 2.1.13-1.el9_8 | ALSA-2026:67910 |
| AlmaLinux 8 | libevent | Fixed | 2.1.8-11.el8_10 | ALSA-2026:67908 |
| AlmaLinux 8 | libevent-devel | Fixed | 2.1.8-11.el8_10 | ALSA-2026:67908 |
| AlmaLinux 8 | libevent-doc | Fixed | 2.1.8-11.el8_10 | ALSA-2026:67908 |
| Rocky Linux 10 | libevent | Fixed | 0:2.1.13-1.el10_2 | RLSA-2026:67909 |
| Rocky Linux 9 | libevent | Fixed | 0:2.1.13-1.el9_8 | RLSA-2026:67910 |
| Rocky Linux 8 | libevent | Fixed | 0:2.1.8-11.el8_10 | RLSA-2026:67908 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libevent: affected: >= 2.2.0-alpha, < 2.2.2-alpha, < 2.1.13
References
- https://github.com/libevent/libevent/security/advisories/GHSA-58rx-7448-jw47
- https://github.com/libevent/libevent/releases/tag/release-2.1.13-stable
- https://github.com/libevent/libevent/releases/tag/release-2.2.2-alpha
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.