CVE-2026-63387: Libevent: Off-by-one stack buffer overflow in dnsname_to_labels via crafted DNS server response

Published Aug 20, 2026
·
Updated

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[buflen]. 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 Software

1 affected component
libevent libevent>2.1.13<2.2.2-alpha

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade libevent to a version that resolves this vulnerability.

    Fixed in 2.1.13
  2. Upgrade

    Upgrade libevent to a version that resolves this vulnerability.

    Fixed in 2.2.2-alpha

Event History

Aug 20, 2026
CVE Published
via MITRE·05:53 PM
Data Sourced
via MITRE·05:53 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which DNS record types can trigger the overflow?

A crafted DNS server response containing name-bearing PTR, CNAME, MX, NS, or SOA data can trigger the out-of-bounds write when the formatted name reaches the end of the 64 KB response buffer.

2

What does an attacker need to exploit this issue?

The attacker needs to supply a crafted DNS server response. No privileges or user interaction are required, but exploitation has high attack complexity.

3

Which versions contain the fix?

The issue is fixed in libevent 2.1.13 and 2.2.2-alpha. Versions prior to those releases are affected according to the available information.

4

What is the likely impact if the flaw is triggered?

The one-byte stack out-of-bounds write can crash the affected process or corrupt its memory. The reported impact includes low confidentiality and integrity impact and high availability impact.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203