Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-29035 EUVD-2026-56944GHSA-xvrx-cw3m-h23c

CivetWeb Heap/Stack Buffer Overflow via WebSocket permessage-deflate Decompression

Published Aug 11, 2026 · Updated Aug 14, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
civetweb civetweb ≤ 4a4f0c95 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 civetweb No fix yet —
Debian 13 civetweb No fix yet —
Debian 12 civetweb No fix yet —

References