Buffer overflow in Civetweb
CVE-2026-29035
- CVSS v3
- 6.5 Medium
- Public exploits
- None known
- EPSS
- 0.006 · 50.2th percentile
- Published
- 2026-08-11
CivetWeb (commit 4a4f0c95) contains a heap and stack buffer overflow vulnerability in the read_websocket() function that allows unauthenticated remote attackers to corrupt memory by sending compressed WebSocket frames when both USE_ZLIB and MG_EXPERIMENTAL_INTERFACES are defined. Attackers can negotiate permessage-deflate during the WebSocket handshake and send a crafted frame with the RSV1 bit set, causing the server to write a 4-byte zlib sync trailer out-of-bounds past the allocated buffer, leading to heap metadata corruption, denial of service, or potential code execution.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- High
AC:H - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- Low
I:L - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.006, 50.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Civetweb — versions 0
Weakness classification (CWE)
References
- Product Repository (product)
- www.vulncheck.com/advisories/civetweb-heap-stack-buffer-overflow-via-websocket-… (third-party-advisory)