Description
Libevent is an event notification library. Prior to 2.1.13 and 2.2.2-alpha, libevent has a heap out-of-bounds write in bufferevent_sock.c when bufferevent_socket_set_conn_address_ copies a kernel-supplied AF_UNIX peer address into bufferevent_private.conn_address. Release builds compiled with NDEBUG disable the EVUTIL_ASSERT length guard, and the evhttp accept path can pass a 110-byte sockaddr from accept() into the 28-byte field. An unauthenticated local peer able to connect to an AF_UNIX listener can overwrite the adjacent dns_request pointer and heap data, causing memory corruption with confidentiality, integrity, and availability impact. This issue is fixed in versions 2.1.13 and 2.2.2-alpha.
Published: 2026-08-20
Score: 8.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a heap out‑of‑bounds write triggered when the function bufferevent_socket_set_conn_address_ copies a kernel‑supplied AF_UNIX peer address into an overly small buffer. Prior to libevent 2.1.13 and 2.2.2‑alpha, the library did not guard against this overflow in release builds compiled with NDEBUG. An unauthenticated local peer that can connect to an AF_UNIX listener can supply a 110‑byte sockaddr, causing a 28‑byte field to be overwritten. This memory corruption can overwrite adjacent heap objects such as dns_request pointers, leading to confidentiality, integrity, and availability disruption, potentially enabling arbitrary code execution.

Affected Systems

All releases of libevent before 2.1.13 and 2.2.2‑alpha are affected. Vulnerable versions include any 2.x branches prior to 2.1.13 and 2.2.2‑alpha; the fix is incorporated in the 2.1.13 stable release and the 2.2.2‑alpha development build.

Risk and Exploitability

The CVSS score of 8.4 indicates high severity. EPSS is not available, and the vulnerability is not listed in CISA KEV, suggesting no widely reported exploitation. The likely attack vector is local and unauthenticated; an attacker must have access to the same host and be able to open the AF_UNIX listening socket. If such access is possible, the defect can be exploited to overwrite heap memory, potentially leading to arbitrary code execution or crash.

Generated by OpenCVE AI on August 21, 2026 at 01:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade libevent to version 2.1.13 or later, or to the 2.2.2‑alpha build or newer.
  • Restart all applications that link to libevent to ensure they load the updated library.
  • Restrict local users’ permissions to the directory containing the AF_UNIX socket to prevent unauthorized connections.

Generated by OpenCVE AI on August 21, 2026 at 01:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description Libevent is an event notification library. Prior to 2.1.13 and 2.2.2-alpha, libevent has a heap out-of-bounds write in bufferevent_sock.c when bufferevent_socket_set_conn_address_ copies a kernel-supplied AF_UNIX peer address into bufferevent_private.conn_address. Release builds compiled with NDEBUG disable the EVUTIL_ASSERT length guard, and the evhttp accept path can pass a 110-byte sockaddr from accept() into the 28-byte field. An unauthenticated local peer able to connect to an AF_UNIX listener can overwrite the adjacent dns_request pointer and heap data, causing memory corruption with confidentiality, integrity, and availability impact. This issue is fixed in versions 2.1.13 and 2.2.2-alpha.
Title Libevent: Heap out-of-bounds write in bufferevent_socket_set_conn_address_ reachable via AF_UNIX accept
Weaknesses CWE-617
CWE-787
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-20T17:44:18.435Z

Reserved: 2026-07-16T17:39:30.171Z

Link: CVE-2026-63388

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T18:16:36.893

Modified: 2026-08-20T18:16:36.893

Link: CVE-2026-63388

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T02:00:05Z

Weaknesses