Skip to main content

Libevent CVE-2026-63387

| EUVDEUVD-2026-63508 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-08-20 GitHub_M
7.0
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Gain rogue or spoofed DNS server position
  2. Delivery
    Send crafted DNS response with PTR/CNAME/MX/NS/SOA record
  3. Exploit
    Precisely size name labels to fill 64KB stack buffer
  4. Execution
    Trigger off-by-one null write in dnsname_to_labels
  5. Persist
    Corrupt adjacent stack byte
  6. Impact
    Crash process or corrupt control-flow data

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application uses libevent's evdns module to process DNS server responses - applications that do not invoke evdns are unaffected by this specific flaw. The attacker must control or impersonate a DNS server queried by the vulnerable application, enabling delivery of a crafted response; this means the attacker needs either a man-in-the-middle network position on the DNS path or control over an upstream DNS resolver the application trusts. The crafted response must contain a name-bearing record type (PTR, CNAME, MX, NS, or SOA) with label data sized so that encoding fills the 64KB stack buffer exactly, placing the final null write at buf[buf_len]. This precision sizing constraint is what CVSS encodes as AC:H and is the primary limiting factor for reliable exploitation. Limiting factors beyond the above: the vulnerability is not self-triggered by passive network traffic; it requires active delivery of a malicious DNS response; and reliable exploitation without crashing requires environment-specific knowledge of the stack layout, which varies by platform, compiler version, and optimization level.

Impact

The CVSS 7.0 score with vector AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H reflects a network-reachable flaw where high attack complexity (AC:H) is the primary risk-dampening factor: reliable exploitation requires a crafted DNS response whose encoded name labels are sized to reach exactly the 64KB boundary, a precision constraint that varies by environment and makes mass exploitation unlikely. The Availability impact is rated High (process crash or stack corruption), while Confidentiality and Integrity are rated Low - this assessment independently rates C:N, as a single null-byte write does not expose memory contents. No CISA KEV listing and no public exploit or proof-of-concept code have been identified in the provided intelligence; EPSS data is absent from the provided sources. The vulnerability is triggered during DNS response processing, meaning exploitation requires either control of a DNS server the application trusts or a network position enabling DNS response spoofing. Overall, this is a moderate real-world priority: critical for projects distributing libevent as a dependency (Tor, Memcached, and similar), but the AC:H constraint and absence of public exploits limit imminent mass-exploitation risk.

Exploit ScenarioDerived

An attacker who controls or can spoof responses from a DNS server queried by a libevent-based application sends a crafted DNS reply containing a PTR, CNAME, MX, NS, or SOA record whose encoded name labels are precisely sized to fill the 64KB stack buffer, causing dnsname_to_labels() to write a null byte one position past the buffer boundary. At minimum, the overwritten stack byte crashes the process; on systems without stack canary protections, the corruption could potentially be leveraged for further control-flow manipulation. No public proof-of-concept code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 20, 2026

Off-by-one stack buffer overflow in Libevent's evdns component (versions prior to 2.1.13-stable and 2.2.2-alpha) enables remote attackers to crash or corrupt processes that use the library's DNS handling functions. The dnsname_to_labels() function in evdns.c mishandles the boundary check when writing DNS labels into a 64KB stack buffer - the terminating null byte is written one position past the allocated buffer to buf[buf_len] whenever a name-bearing record aligns precisely at the boundary. Any application embedding libevent's evdns module and querying an attacker-influenced DNS server is in scope; no public exploit has been identified at time of analysis, and the vulnerability is not listed in CISA KEV.

RemediationAI

Upgrade to libevent 2.1.13-stable (for 2.1.x deployments) or libevent 2.2.2-alpha (for 2.2.x pre-release deployments); both releases contain the confirmed fix for GHSA-58rx-7448-jw47. Release artifacts are available at https://github.com/libevent/libevent/releases/tag/release-2.1.13-stable and https://github.com/libevent/libevent/releases/tag/release-2.2.2-alpha. For systems that cannot immediately upgrade, restrict the application to querying only trusted, controlled DNS infrastructure, since exploitation requires delivery of a crafted DNS server response - applications that never receive responses from attacker-influenced DNS servers cannot be triggered. Compiling libevent with -fstack-protector-strong will not prevent the one-byte write but will cause the process to abort on stack corruption detection, limiting potential control-flow hijacking at the cost of an availability impact upon attempted exploitation. Applications that do not link against or invoke the evdns module are unaffected and require no action.

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 portable C event notification library providing abstractions for I/O events, timers, and signals. The affected component is its embedded DNS subsystem (evdns.c), specifically dnsname_to_labels(), invoked during evdns_server_request_format_response() when constructing a DNS reply. The library allocates a 64KB stack buffer for the formatted response; the root cause (CWE-121: Stack-based Buffer Overflow) is a boundary condition where the guard permits the expression j + label_len + 1 to equal buf_len rather than requiring it to be strictly less, so the null terminator is written to buf[buf_len] - one byte beyond the allocation. Affected DNS record types are PTR, CNAME, MX, NS, and SOA, all of which carry encoded name labels. The CPE cpe:2.3:a:libevent:libevent:*:*:*:*:*:*:*:* indicates all platforms are affected. Applications that rely on libevent for server-side DNS processing or client-side resolution via evdns are in scope; those that do not use the evdns module are unaffected.

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 7.0 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
vuln.today AI 6.5 MEDIUM

AV:N because crafted DNS response traverses the network; AC:H for precise 64KB buffer-fill requirement; C:N because a single null-byte write does not expose memory contents.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High

Lifecycle Timeline

2
Patch available
Aug 20, 2026 - 18:03 EUVD
CVE Published
Aug 20, 2026 - 17:53 cve.org
HIGH 7.0

DescriptionCVE.org

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 dnsname_to_labels formats a name-bearing DNS record at the end of the 64 KB stack buffer allocated by evdns_server_request_format_response. The final-label check permits j plus label_len plus one to equal buf_len, after which the terminating null byte is written to buf[buf_len]. 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.

Executive ViewAI

Why It Matters

A critical vulnerability in Libevent's DNS component (versions before 2.1.13-stable or 2.2.2-alpha) can remotely crash or corrupt services that rely on this widely-used library for DNS operations. Organizations using Libevent in production-particularly for services facing untrusted networks-face operational risk and potential service downtime. Immediate identification and patching are required to prevent incidents.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Medium
popular C event library used by Tor, Memcached, Chromium
Data Quality
7 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
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.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

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-63381 MEDIUM
5.8 Aug 20

Use-after-free memory corruption in libevent's evbuffer_add_buffer_reference (buffer.c) allows a caller that can drive a

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: Important
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