Libevent
Libevent: Unbounded memory accumulation in WebSocket server via fragmented frames
Libevent is an event notification library. From 2.2.0-alpha-dev until 2.2.2-alpha, the libevent WebSocket server in ws.c accumulates fragmented frames in evws->incomplete_frames without enforcing a total message-size limit. An unauthenticated remote client can repeatedly send fragmented WebSocket frames below WS_MAX_RECV_FRAME_SZ with FIN=0, causing the evbuffer to grow without bound until the process or host exhausts memory. This issue is fixed in version 2.2.2-alpha.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-400
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
libevent libevent
- >= 2.2.0-alpha-dev, < 2.2.2-alpha
Fixed in 2.2.2-alpha
Mitigation
Upgrade libevent to 2.2.2-alpha or later.
References
- Vendor advisory github.com/libevent/libevent/security/advisori…
- Patch github.com/libevent/libevent/commit/291c4d1cd7…
- Release notes github.com/libevent/libevent/releases/tag/rele…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.