CVE-2026-63380

Libevent: Null Pointer Dereference in `evws_new_session`

Published Aug 20, 2026 CVSS 4.0 · 5.7 Medium EPSS < 1% KEV · Not listed
Description
Libevent is an event notification library. Prior to 2.2.2-alpha, libevent can dereference invalid list pointers in ws.c when evws_new_session enters its error path after evhttp_start_ws_ succeeds but bufferevent_enable_locking_ fails. evws_connection_free sees a non-null http_server and unconditionally calls TAILQ_REMOVE even though the session was never inserted into http_server->ws_sessions. A local caller able to induce this allocation or locking failure can crash the process. This issue is fixed in version 2.2.2-alpha.

Analysis

AI-generated

Technical impact

A null pointer dereference is triggered in libevent’s evws_new_session when the error path is entered after evhttp_start_ws_ succeeds but bufferevent_enable_locking_ fails. The routine then unconditionally removes a session from a list that was never inserted, causing the process to crash. This results in a denial‑of‑service condition. The underlying weaknesses are a null pointer dereference (CWE‑476) and an improper use of freed memory (CWE‑416).

Affected Systems

All libevent releases prior to 2.2.2-alpha are affected. This includes any system or application that has linked against libevent before the 2.2.2-alpha release and has not upgraded to a later, patched version.

Risk and Exploitability

The CVSS score is 5.7, indicating moderate severity, and the EPSS score is not available. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires a local caller or an application that can induce a failure in bufferevent_enable_locking_. An attacker who can trigger this failure path can crash the process, causing a denial of service. Because the exploit relies on a specific failure condition, the likelihood of widespread accidental exploitation is low, but a determined attacker with sufficient access could still trigger the crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libevent to version 2.2.2-alpha or newer.
  • Rebuild systems or containers that use libevent to link against the updated library.
  • Verify that application configurations no longer rely on the older evws_new_session error path.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Libevent Project
Libevent Project libevent
Vendors & Products Libevent Project
Libevent Project libevent
Type Values Removed Values Added
Description Libevent is an event notification library. Prior to 2.2.2-alpha, libevent can dereference invalid list pointers in ws.c when evws_new_session enters its error path after evhttp_start_ws_ succeeds but bufferevent_enable_locking_ fails. evws_connection_free sees a non-null http_server and unconditionally calls TAILQ_REMOVE even though the session was never inserted into http_server->ws_sessions. A local caller able to induce this allocation or locking failure can crash the process. This issue is fixed in version 2.2.2-alpha.
Title Libevent: Null Pointer Dereference in `evws_new_session`
Weaknesses CWE-416
CWE-476
References
Metrics cvssV4_0

{'score': 5.7, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 25, 2026, 3:11 PM
Reserved
Jul 16, 2026, 5:39 PM
Status
Awaiting Analysis
Published
Aug 20, 2026, 6:16 PM
Modified
Oct 26, 2026, 10:10 AM
Severity
Moderate
Public date
Aug 20, 2026, 5:52 PM