CVE-2026-63381
Received Received - Intake

Use-After-Free in Libevent Buffer Handling

Vulnerability report for CVE-2026-63381, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-20

Last updated on: 2026-08-20

Assigner: GitHub, Inc.

Description

Libevent is an event notification library. Prior to 2.1.13 and 2.2.2-alpha, libevent has a use-after-free in buffer.c when evbuffer_add_buffer_reference processes an output buffer whose out_total_len is zero. evbuffer_free_all_chains frees the initial empty chain without resetting outbuf->first, outbuf->last, or outbuf->last_with_datap, and APPEND_CHAIN_MULTICAST subsequently dereferences the dangling chain pointer. A caller that can drive this buffer state can cause memory corruption or a process crash. This issue is fixed in versions 2.1.13 and 2.2.2-alpha.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-20
Last Modified
2026-08-20
Generated
2026-08-20
AI Q&A
2026-08-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 6 associated CPEs
Vendor Product Version / Range
libevent libevent to 2.1.13 (inc)
libevent libevent to 2.2.2-alpha (inc)
libevent libevent to 2.1.13 (exc)
libevent libevent to 2.2.2-alpha (exc)
libevent libevent to 2.1.12 (exc)
libevent libevent to 2.2.1-alpha (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-908 The product uses or accesses a resource that has not been initialized.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-63381 is a use-after-free vulnerability in the libevent library affecting versions before 2.1.13 and 2.2.2-alpha. It occurs when evbuffer_add_buffer_reference processes an output buffer with zero length, causing evbuffer_free_all_chains to free an empty chain without resetting critical pointers. This leaves dangling pointers that can be dereferenced later, leading to memory corruption or crashes.

Detection Guidance

Detecting this vulnerability requires checking the installed version of libevent. Run 'libevent_version' or check package managers like 'apt list --installed | grep libevent' or 'yum list installed | grep libevent'. If the version is 2.1.12 or earlier, or 2.2.1-alpha or earlier, the system is vulnerable.

Impact Analysis

An attacker could exploit this to cause memory corruption or crash the affected application. This may lead to denial-of-service conditions or potentially allow arbitrary code execution depending on the application's context and memory management.

Compliance Impact

This vulnerability primarily causes memory corruption or process crashes due to a use-after-free condition, which does not directly impact compliance with standards like GDPR or HIPAA. However, if exploited, it could lead to denial-of-service conditions or potential information leaks, which may indirectly affect data integrity or availability requirements under these regulations.

Mitigation Strategies

Upgrade libevent to version 2.1.13 or 2.2.2-alpha or later. Use package managers like 'apt upgrade libevent' or 'yum update libevent' to apply the patch. If upgrading is not possible, avoid using functions that manipulate empty buffers in evbuffer operations.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-63381. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart