CVE-2026-5067
Critical · 9.8CVSS
9.8
EPSS
0.9%
Published
Jun 9, 2026
CISA due date
—
The record
A remote, unauthenticated attacker can trigger memory corruption in Zephyr's HTTP server WebSocket upgrade path by sending a crafted Sec-WebSocket-Key header. The HTTP/1 header parser copies the header into a fixed-size buffer using a bounded copy that does not guarantee NUL termination when the input length reaches the buffer size. During upgrade handling the buffer is copied to a local stack buffer and passed to strlen(); if no NUL exists in-bounds, strlen() reads beyond the stack buffer and subsequent concatenation with the WebSocket magic string can write out of bounds. This leads to out-of-bounds read and write on stack memory, resulting in crash (denial of service) and potentially code execution. The path is reachable when CONFIG_HTTP_SERVER_WEBSOCKET is enabled.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-12386 Improper null termination vulnerability in TUBITAK BILGEM Software Technologies Research… CWE-170
- CVE-2026-8721 Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded… CWE-170
- CVE-2026-42010 A flaw was found in gnutls. CWE-170
- CVE-2026-34462 Sandboxie-Plus is an open source sandbox-based isolation software for Windows. CWE-170
- CVE-2026-34464 Sandboxie-Plus is an open source sandbox-based isolation software for Windows. CWE-170
- CVE-2026-34032 Improper Null Termination, Out-of-bounds Read vulnerability in Apache HTTP Server. CWE-170
- CVE-2026-40334 libgphoto2 is a camera access and control library. CWE-170
- CVE-2026-33948 jq is a command-line JSON processor. CWE-170