Skip to main content

libevent EUVDEUVD-2026-63504

| CVE-2026-63381 MEDIUM
Use of Uninitialized Resource (CWE-908)
2026-08-20 GitHub_M
5.8
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local or in-process application access
  2. Delivery
    Construct output evbuffer with zero-length reference chain
  3. Exploit
    Call evbuffer_add_buffer_reference on crafted empty-chain buffer
  4. Execution
    evbuffer_free_all_chains frees chain without resetting pointers
  5. Persist
    APPEND_CHAIN_MULTICAST dereferences dangling pointer
  6. Impact
    Process crash or heap corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Variable initialization
Exploitation Conditions

Exploitation requires the calling application to pass an output evbuffer whose internal chain was already freed (out_total_len == 0, with an existing empty chain established by a prior call such as evbuffer_add_reference with a zero-length buffer) into evbuffer_add_buffer_reference. This is not the default operational state of a libevent evbuffer; the specific sequence - create an evbuffer, add a zero-length reference to it, then call evbuffer_add_buffer_reference on it - must occur either through direct API use or through a higher-level abstraction that incidentally produces this pattern. CVSS 4.0 PR:L limits exploitation to callers with existing application-level access; unauthenticated remote exploitation is not possible without a network-exposed code path that surfaces this specific buffer-construction sequence. The attack target condition AT:P confirms the non-default nature of the prerequisite state.

Impact

The CVSS 4.0 score of 5.8 with vector AV:L/AC:L/AT:P/PR:L correctly reflects a local, low-privilege vulnerability that requires a specific attack target condition (AT:P) - the caller must construct an output evbuffer with a zero-length chain before invoking evbuffer_add_buffer_reference. The high availability impact (VA:H) captures that a successful trigger reliably crashes the host process; low confidentiality and integrity impacts (VC:L/VI:L) acknowledge that heap memory corruption may expose or corrupt adjacent allocations, but controlled code execution would require additional exploitation primitives not evidenced here. No EPSS data was supplied in the input, so exploitation probability cannot be quantified numerically. There is no CISA KEV listing and no public exploit code, making opportunistic mass exploitation unlikely in the near term. However, libevent's broad library footprint means any networked application that surfaces a reachable code path constructing empty-chain output buffers is indirectly exposed, which could elevate effective risk in specific deployments. The AT:P condition is the primary limiting factor: the empty-chain state is not the default and requires deliberate or incidental API usage patterns.

Exploit ScenarioDerived

An application using libevent calls evbuffer_add_reference on an output buffer with zero-length data, leaving it with an empty internal chain and out_total_len of zero; a subsequent call to evbuffer_add_buffer_reference on that buffer triggers evbuffer_free_all_chains, which frees the empty chain but leaves the three tracking pointers dangling. APPEND_CHAIN_MULTICAST then dereferences those freed pointers, crashing the process or corrupting the heap in a manner an in-process attacker controlling buffer construction could time to cause denial of service. No public proof-of-concept exploit has been identified, but the upstream regression test (test_evbuffer_multicast_empty_chain in regress_buffer.c) precisely documents the triggering call sequence.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 20, 2026

Use-after-free memory corruption in libevent's evbuffer_add_buffer_reference (buffer.c) allows a caller that can drive a specific empty-buffer state to trigger process crashes or heap corruption in any application linking the library. Affected are libevent stable releases before 2.1.13 and development releases 2.2.0-alpha through 2.2.2-alpha; the root cause is that evbuffer_free_all_chains frees the initial empty chain without nullifying the three outbuf chain-tracking pointers, after which APPEND_CHAIN_MULTICAST dereferences the now-dangling pointer. No public exploit code and no active exploitation (CISA KEV) has been identified at time of analysis; vendor-released patches are available for both stable and alpha branches.

RemediationAI

Upgrade to libevent 2.1.13-stable (https://github.com/libevent/libevent/releases/tag/release-2.1.13-stable) or libevent 2.2.2-alpha (https://github.com/libevent/libevent/releases/tag/release-2.2.2-alpha); both are confirmed vendor-released patches. The fix (commits 5cb95ba and 9db091b) inserts three pointer resets - outbuf->first = NULL, outbuf->last = NULL, outbuf->last_with_datap = &outbuf->first - immediately after evbuffer_free_all_chains, closing the dangling-pointer window. If immediate upgrade is not feasible, application-level callers should audit all call sites of evbuffer_add_buffer_reference and add a guard that skips the call when evbuffer_get_length(outbuf) == 0 and the buffer has no data; this prevents reaching the vulnerable code path with zero cost to correctness. Downstream package maintainers (OS distributions, container base images) should also be tracked, as many environments ship libevent as a shared system library.

Affected VersionsENISA

libevent < 2.1.13
libevent 2.2.0-alpha, < 2.2.2-alpha

Affected Packages

euvd libevent fix: 2.1.13
euvd libevent_2_2_0_alpha fix: 2.2.2-alpha

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Libevent is a foundational C event-notification and I/O abstraction library used by high-profile projects including memcached, Tor, and Chromium's network stack. The vulnerability resides in evbuffer_add_buffer_reference in buffer.c. When an output evbuffer has an out_total_len of zero - meaning it holds an empty chain, for instance created by a prior zero-length evbuffer_add_reference call - the function invokes evbuffer_free_all_chains to discard that initial empty chain before building the multicast reference list. The bug is that outbuf->first, outbuf->last, and outbuf->last_with_datap are not reset to NULL or a safe sentinel after the free. APPEND_CHAIN_MULTICAST subsequently dereferences all three through the now-freed chain pointer, producing a classic use-after-free. The CPE string cpe:2.3:a:libevent:libevent:*:*:*:*:*:*:*:* covers all platforms. CWE-908 (Use of Uninitialized Resource) is the assigned weakness; however, the CVE description and commit diff confirm the mechanism is better characterized as CWE-416 (Use After Free) - the dangling pointer is the freed memory, not merely uninitialized storage. The fix, visible in commit 5cb95ba, is three pointer-nullification lines inserted immediately after the free.

Know when Libevent gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.6 MEDIUM

Local vector since exploitation requires driving application-level buffer API; PR:L for process-level access; A:H for reliable process crash on trigger.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 6.6 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Red Hat 6.6 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 20, 2026 - 18:03 EUVD
CVE Published
Aug 20, 2026 - 17:50 cve.org
MEDIUM 5.8

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
High
foundational C library used by memcached, Tor, and Chromium
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

CVE-2016-10195 CRITICAL POC
9.8 Mar 15

The name_parse function in evdns.c in libevent before 2.1.6-beta allows remote attackers to have unspecified impact via

CVE-2016-10197 HIGH POC
7.5 Mar 15

The search_make_new function in evdns.c in libevent before 2.1.6-beta allows attackers to cause a denial of service (out

CVE-2016-10196 HIGH POC
7.5 Mar 15

Stack-based buffer overflow in the evutil_parse_sockaddr_port function in evutil.c in libevent before 2.1.6-beta allows

CVE-2026-63382 CRITICAL
9.2 Aug 20

HTTP request smuggling in the libevent evhttp server (http.c) affects all versions prior to 2.1.13 and the 2.2.x-alpha l

CVE-2026-63384 HIGH
8.7 Aug 20

Integer overflow in Libevent's event tagging subsystem exposes any application using the evtag API to remote denial of s

CVE-2026-63383 HIGH
8.7 Aug 20

Out-of-bounds read in libevent's tagged RPC decoder crashes any application that decodes attacker-controlled tag data us

CVE-2026-63388 HIGH
8.4 Aug 20

Heap out-of-bounds write in libevent's bufferevent_sock.c allows any local peer connecting to an AF_UNIX evhttp listener

CVE-2014-6272 HIGH
7.5 Aug 24

Multiple integer overflows in the evbuffer API in Libevent 1.4.x before 1.4.15, 2.0.x before 2.0.22, and 2.1.x before 2.

CVE-2015-6525 HIGH
7.5 Aug 24

Multiple integer overflows in the evbuffer API in Libevent 2.0.x before 2.0.22 and 2.1.x before 2.1.5-beta allow context

CVE-2026-63495 HIGH
7.5 Aug 20

Memory exhaustion in libevent's WebSocket server (ws.c) allows unauthenticated remote clients to crash affected processe

CVE-2026-63387 HIGH
7.0 Aug 20

Off-by-one stack buffer overflow in Libevent's evdns component (versions prior to 2.1.13-stable and 2.2.2-alpha) enables

CVE-2026-63380 MEDIUM
5.7 Aug 20

Use-after-free in libevent's WebSocket session initialization (ws.c) before version 2.2.2-alpha allows a local low-privi

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 12 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy