CVE-2026-5067: Improper Null Termination in zephyrproject-rtos Zephyr
CVE-2026-5067 is a critical vulnerability in the Zephyr RTOS HTTP server WebSocket upgrade path. It arises from improper null termination when copying the Sec-WebSocket-Key header into a fixed-size buffer. This flaw can cause out-of-bounds reads and writes on the stack, potentially leading to denial of service or code execution. The vulnerability is exploitable remotely without authentication when the HTTP server WebSocket feature is enabled.
AI Analysis
Technical Summary
This vulnerability in Zephyr's HTTP server occurs because the HTTP/1 header parser copies the Sec-WebSocket-Key header into a fixed-size buffer using a bounded copy that does not guarantee null termination if the input length matches the buffer size. Later, the buffer is copied to a local stack buffer and passed to strlen(); if no null terminator is present within bounds, strlen() reads beyond the buffer, and subsequent concatenation with the WebSocket magic string causes out-of-bounds write. This leads to stack memory corruption, causing crashes or potentially allowing remote code execution. The issue is reachable only when CONFIG_HTTP_SERVER_WEBSOCKET is enabled.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability to cause out-of-bounds read and write on stack memory, resulting in denial of service (crash) or potentially remote code execution. The vulnerability affects confidentiality, integrity, and availability of the affected system. The CVSS score of 9.8 reflects its critical severity and ease of exploitation over the network without privileges or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider disabling the HTTP server WebSocket feature (CONFIG_HTTP_SERVER_WEBSOCKET) if feasible to mitigate exposure.
CVE-2026-5067: Improper Null Termination in zephyrproject-rtos Zephyr
Description
CVE-2026-5067 is a critical vulnerability in the Zephyr RTOS HTTP server WebSocket upgrade path. It arises from improper null termination when copying the Sec-WebSocket-Key header into a fixed-size buffer. This flaw can cause out-of-bounds reads and writes on the stack, potentially leading to denial of service or code execution. The vulnerability is exploitable remotely without authentication when the HTTP server WebSocket feature is enabled.
CVSS v3.1
Score 9.8critical
Affected software
pkg:github/zephyrproject-rtos/zephyrRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Zephyr's HTTP server occurs because the HTTP/1 header parser copies the Sec-WebSocket-Key header into a fixed-size buffer using a bounded copy that does not guarantee null termination if the input length matches the buffer size. Later, the buffer is copied to a local stack buffer and passed to strlen(); if no null terminator is present within bounds, strlen() reads beyond the buffer, and subsequent concatenation with the WebSocket magic string causes out-of-bounds write. This leads to stack memory corruption, causing crashes or potentially allowing remote code execution. The issue is reachable only when CONFIG_HTTP_SERVER_WEBSOCKET is enabled.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability to cause out-of-bounds read and write on stack memory, resulting in denial of service (crash) or potentially remote code execution. The vulnerability affects confidentiality, integrity, and availability of the affected system. The CVSS score of 9.8 reflects its critical severity and ease of exploitation over the network without privileges or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider disabling the HTTP server WebSocket feature (CONFIG_HTTP_SERVER_WEBSOCKET) if feasible to mitigate exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-03-27T22:30:27.757Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a27adb3e29bf47b504f94c8
Added to database: 06/09/2026, 06:07:47 UTC
Last enriched: 06/16/2026, 08:47:52 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 65
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.