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.
Published: 2026-08-11
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

CivetWeb contains a heap and stack buffer overflow in its read_websocket() routine that is triggered when compressed WebSocket frames are processed during a permessage-deflate handshake. An unauthenticated attacker can craft a frame with the RSV1 bit set, causing the server to write a zlib sync trailer past the bounds of an allocated buffer. This corrupts heap metadata, leading to a denial of service or, in the worst case, execution of arbitrary code. The weakness is classified as CWE‑787, a classic buffer overflow vulnerability.

Affected Systems

The affected product is CivetWeb. No specific release numbers are listed, but the issue exists in versions compiled with the USE_ZLIB and MG_EXPERIMENTAL_INTERFACES options before the commit that introduced the fix. Version information is not provided in the CVE data, so any deployment of CivetWeb that retains these compile options remains at risk.

Risk and Exploitability

The CVSS score of 8.3 indicates a high severity vulnerability, however the EPSS score of less than 1% shows that exploitation is currently uncommon. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit it by connecting to the WebSocket service and negotiating permessage-deflate during the handshake without authentication. Upon sending a maliciously crafted frame, memory corruption occurs, potentially allowing the attacker to achieve code execution or cause a service outage.

Generated by OpenCVE AI on August 12, 2026 at 19:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest CivetWeb release that incorporates the security patch for the read_websocket buffer overflow.
  • If a patch cannot be applied immediately, recompile CivetWeb without the USE_ZLIB or MG_EXPERIMENTAL_INTERFACES options, or disable the permessage-deflate WebSocket extension in the server configuration.
  • Limit WebSocket access to trusted networks or authenticated clients and monitor traffic for unusually large or malformed frames to detect attempted exploitation.

Generated by OpenCVE AI on August 12, 2026 at 19:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:civetweb_project:civetweb:*:*:*:*:*:*:*:*

Thu, 13 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 13 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Civetweb Project
Civetweb Project civetweb
Vendors & Products Civetweb Project
Civetweb Project civetweb

Wed, 12 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
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.
Title CivetWeb Heap/Stack Buffer Overflow via WebSocket permessage-deflate Decompression
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Civetweb Project Civetweb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T16:49:40.759Z

Reserved: 2026-03-03T17:24:13.914Z

Link: CVE-2026-29035

cve-icon Vulnrichment

Updated: 2026-08-12T16:03:58.292Z

cve-icon NVD

Status : Received

Published: 2026-08-11T21:17:35.507

Modified: 2026-08-12T17:17:26.520

Link: CVE-2026-29035

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-11T20:14:00Z

Links: CVE-2026-29035 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T10:30:04Z

Weaknesses