Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOpen HTTP/2 connection to server
-
DeliverySend crafted HPACK path header
-
ExploitOverflow header buffer via lws_frag_append
-
ExecutionCorrupt adjacent heap memory
-
ImpactExecute code in process context
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the target to be a libwebsockets build with HTTP/2 support enabled and serving over HTTP/2 (LWS_WITH_HTTP2); the flaw is reached only through the HPACK header-decoding path (lws_frag_append when appending a path/header fragment beyond max_http_header_data). No authentication or user interaction is needed per the CVSS vector (PR:N/UI:N), so any reachable HTTP/2 endpoint is exposed. Limiting factors: servers/embedded devices that only speak HTTP/1.1 or were not compiled with HTTP/2 are not affected, and turning the bounded OOB write into reliable arbitrary-code execution (rather than a crash) depends on heap layout, allocator, and platform, which raises real-world exploitation difficulty above the raw AC:L rating. |
| Impact | Signals point to a genuine high-priority memory-corruption flaw, but not one with confirmed active exploitation. The CVSS 3.0 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H, 9.8) describes a remote, unauthenticated, no-interaction OOB write, and CWE-787 plus the ZDI advisory (ZDI-26-590, ZDI-CAN-31036) and the vendor patch commit corroborate a real out-of-bounds write in HTTP/2 HPACK path-header parsing. However, there is no EPSS score, no KEV listing, and no public PoC provided, so this is 'no public exploit identified at time of analysis' - the RCE outcome is asserted by ZDI's classification rather than demonstrated by shipped exploit code. The one-line patch (a simple |
| Exploit ScenarioDerived | A remote, unauthenticated attacker opens an HTTP/2 connection to a libwebsockets-based server and sends a crafted HPACK-encoded request whose :path (or other) header fragment exceeds the header buffer, triggering an out-of-bounds write past the allocated header-allocation buffer. Reliably this crashes the process (DoS); with heap grooming the controlled overflow may be steered into code execution in the process context, as classified by ZDI. No public exploit code is provided in the available data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
An out-of-bounds heap write in libwebsockets' HTTP/2 HPACK header decoder lets unauthenticated remote attackers corrupt memory on any instance compiled with HTTP/2 support (LWS_WITH_HTTP2) and exposing an HTTP/2 listener. The flaw is a missing bound check in lws_frag_append(), which appends header/path fragments without verifying the write stays within the configured max_http_header_data limit, so a crafted HPACK-encoded request header can overrun the destination buffer and potentially yield code execution in the server process context. No public exploit code or confirmed active exploitation has been identified at time of analysis; the vendor has published an upstream fix commit (824151862f37bc72f46d9a3e01d5b9408d313a0b), and while the raw severity is rated 9.8 (CVSS 3.0), the independent assessment scores it CVSS 3.1 AV:N/AC:H, reflecting that the bounded write must still be shaped by heap layout and platform to become reliable arbitrary code execution rather than a crash. Affected: libwebsockets builds with HTTP/2 enabled; HTTP/1.1-only or non-HTTP/2 builds are not reachable through this path.
RemediationAI
Apply the upstream fix commit 824151862f37bc72f46d9a3e01d5b9408d313a0b (https://github.com/warmcat/libwebsockets/commit/824151862f37bc72f46d9a3e01d5b9408d313a0b), which introduces a bounds check in lws_frag_append() against max_http_header_data; because the reference is a raw commit rather than a tagged release, upstream fix is available via commit and a published patched release version has not been independently confirmed, so verify the release notes of the libwebsockets version you consume before assuming it contains the guard. Where the library cannot be rebuilt immediately, the most reliable compensating control is to disable HTTP/2 (compile without LWS_WITH_HTTP2, or configure the server not to negotiate h2 via ALPN), at the cost of losing multiplexing and header compression; terminating HTTP/2 at a hardened front-end proxy or CDN and speaking HTTP/1.1 to the libwebsockets backend also removes reachability, but adds a component and must be applied consistently or clients can bypass it and hit the origin directly. Restricting network exposure of libwebsockets HTTP/2 listeners to trusted management networks reduces attack surface but does not fix embedded devices that must serve untrusted clients. Rebuilding with hardened allocators and ASLR/stack protections raises the difficulty of turning the write into code execution but is defense-in-depth only, not a substitute for the patch. Note that lowering max_http_header_data is not a substitute for the fix, since the missing check is the root cause and enforcement would come at the cost of rejecting legitimate large headers. See ZDI-26-590 for the vendor-coordinated advisory.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libwebsockets is a lightweight C library used both as a client and as an embedded HTTP/WebSocket server, widely deployed in IoT gateways, routers, and other constrained devices. HTTP/2 header compression is implemented via HPACK (RFC 7541), which encodes header fields as literal or indexed fragments that the server must reassemble. In lib/roles/h2/hpack.c, the helper lws_frag_append() accumulates individual header bytes into a per-connection reassembly buffer; the vulnerable revision failed to validate that the running position had not reached wsi->a.context->max_http_header_data before writing. This is a classic CWE-787 out-of-bounds write: attacker-controlled HPACK path (or other) header data is appended past the end of the allocated buffer, corrupting adjacent heap metadata or objects. The upstream fix adds the guard 'if ((unsigned int)ah->pos >= wsi->a.context->max_http_header_data) return 1;', causing decompression to abort with an error instead of writing. The CPE cpe:2.3:a:libwebsockets:libwebsockets:*:*:*:*:*:*:*:* and EUVD's affected revision b4b5aed3903eaff09cd76a410f69bbe5dff66f8e place this in the mainline libwebsockets tree prior to the fix. Reaching the code path requires the connection to be negotiated over HTTP/2 and to pass a header fragment through the HPACK decoder, which is why the independent assessment raises attack complexity (AV:N/AC:H/PR:N/UI:N) relative to the vendor advisory's AC:L rating: the write is bounded by the header accumulation limit, and converting it into controlled execution depends on surrounding heap layout.
Know when Libwebsockets 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
Sources disagree (Medium–Critical)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Remote unauthenticated (AV:N/PR:N/UI:N), but AC:H because HTTP/2 must be enabled and reliable code execution from a bounded header overflow needs heap grooming; full impact retained given ZDI RCE classification.
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorVendor: zdi
DescriptionCVE.org
libwebsockets HTTP/2 HPACK Path Header Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of libwebsockets. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the parsing of HTTP/2 HPACK path header. The issue results from the lack of proper validation of user-supplied data, which can result in a write past the end of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-31036.
Executive ViewAI
A critical heap out-of-bounds write in libwebsockets' HTTP/2 HPACK header decoder can corrupt memory and potentially allow remote code execution in the server process. Any internet-facing service or embedded product compiled with HTTP/2 support (LWS_WITH_HTTP2) and exposing an HTTP/2 listener is at risk, which could lead to service disruption, data compromise, or full host takeover. No public exploit identified at time of analysis, but the critical severity and patch availability warrant immediate remediation, especially because libwebsockets is widely embedded in edge gateways, IoT devices, and API infrastructure.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Libwebsockets
View allOut-of-bounds write in warmcat libwebsockets 4.5.0 allows remote unauthenticated attackers to corrupt process memory by
Unbounded memory allocation in warmcat libwebsockets up to 4.5.8 allows remote unauthenticated attackers to exhaust serv
Denial of service is possible in libwebsockets because the LEJP JSON parser's pre-patch bounds checks in lib/misc/lejp.c
An attacker-supplied PNG image can drive an out-of-bounds heap write in libwebsockets' UPNG decoder when a crafted overs
A heap out-of-bounds read in libwebsockets' lws_upng_emit_next_line() function can crash an application when the library
EUVD-2026-79130
GHSA-r4m8-276f-3r2f
NVD
CVE.org
EPSS
VulDB
Exploit-DB