Skip to main content

Zephyr RTOS EUVDEUVD-2026-126671

| CVE-2026-93673 MEDIUM
Insufficient Verification of Data Authenticity (CWE-345)
2026-11-16 zephyr
4.8
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position as spoofing/replaying peer
  2. Delivery
    Return empty Sec-WebSocket-Accept header
  3. Exploit
    strncmp(count=0) passes handshake gate
  4. Execution
    Client finalizes bogus WebSocket session
  5. Impact
    Exchange application frames with unverified peer

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
Exploitation Conditions

Exploitation requires the target to be a Zephyr application that calls websocket_connect() (including MQTT over WebSocket or OCPP) and, crucially, an attacker who never observed the client's handshake request - because the expected Sec-WebSocket-Accept value is derived from the client nonce and is trivially computable by anyone who sees the request. Concretely the useful positions are: a caching or transparent intermediary replaying a canned response, an off-path attacker injecting a spoofed response, or a non-WebSocket endpoint the client was induced to contact. Given such a position, the trigger is simply returning any HTTP response (status code and Upgrade/Connection headers are never checked by the client) whose Sec-WebSocket-Accept header is empty or a prefix of the expected value. Limiting factors: no impact against the common ws:// on-path attacker (who can already forge a valid value), no memory corruption, and the positioning requirement is what the AC:H rating captures; no authentication is required (PR:N).

Impact

This is a genuine but moderate-priority protocol-validation flaw (CWE-345), not a high-severity emergency. The input CVSS of 4.8 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N) is well-supported: the vector is network-reachable and needs no authentication (PR:N) or user interaction, but AC:H correctly reflects that the attacker must occupy a specific position. The signals are internally consistent rather than conflicting - the vuln.today decision label is 'this_month' (not act_now/emergency), there is no CISA KEV listing, and no EPSS score was supplied, so there is no evidence of active or widespread exploitation. The confidentiality and integrity impact is bounded to LOW because Sec-WebSocket-Accept is a per-connection protocol binding, not a secret credential: an on-path or endpoint attacker who already sees the client's request can compute the correct value regardless of this bug, so the flaw only adds value for parties that never observed the handshake (a caching/transparent intermediary replaying a canned response, an off-path spoofer, or a non-WebSocket endpoint the client was induced to contact). There is explicitly no memory-safety consequence. Net: a real correctness/trust defect worth patching on a normal cycle, consistent with its CVSS, EPSS absence, and 'this_month' label - not a drop-everything issue.

Exploit ScenarioDerived

A Zephyr device using websocket_connect() (e.g., MQTT-over-WebSocket or OCPP) is induced to connect to, or has its response replayed/spoofed by, an attacker that did not see the original handshake request. That party returns an HTTP response carrying an empty or short prefix-matching Sec-WebSocket-Accept header, which the client accepts as a valid handshake; the socket is then finalized as a live WebSocket and the device exchanges application frames with the unverified peer. The reporter included a reproducer harness demonstrating the comparison bypass (empty and prefix values set sec_accept_ok=true), but no weaponized remote exploit is published.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 16, 2026

Zephyr's WebSocket client (subsys/net/lib/websocket/websocket.c) completes the RFC 6455 handshake without ever comparing the full Sec-WebSocket-Accept value: because the comparison used the server-supplied length, an empty header or a short prefix of the expected base64(SHA-1(key || GUID)) value set ctx->sec_accept_ok, and that flag is the only WebSocket-specific gate in websocket_connect() (no HTTP status or Upgrade/Connection checks exist). Any Zephyr application calling websocket_connect() - including MQTT over WebSocket and OCPP users - running versions >= 2.1.0 and < 4.3.2, or >= 4.4.0 and < 4.5.0, can therefore be convinced by a single crafted HTTP response that it holds a live WebSocket session and subsequently sends application data to, and parses frames from, an unverified peer. The assessed CVSS is 4.8 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N) with the high attack complexity reflecting the requirement that the attacker never observed the handshake request; there is no memory-safety consequence, no public exploit identified at time of analysis, and no CISA KEV listing. Vendor-released patches exist in 4.3.2 and 4.5.0.

RemediationAI

Upgrade to Zephyr 4.3.2 or 4.5.0, the releases that contain the corrected handshake validation; the upstream fix is commit 971a304afacf2bc72608ff3fc8cd23a74893654a (https://github.com/zephyrproject-rtos/zephyr/commit/971a304afacf2bc72608ff3fc8cd23a74893654a) and the advisory is https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-vcpg-3c2r-7mxf. Release lines that have not yet taken the backport remain affected per the advisory's version ranges (>= 2.1.0, < 4.3.2; >= 4.4.0, < 4.5.0), so downstream vendors carrying their own Zephyr forks need to apply or cherry-pick the change. The fix compares each delivered chunk against the expected base64(SHA-1(key || GUID)) value at the position already matched, refuses a chunk that would overrun it, requires every byte of the expected value and no more, and makes on_header_field() clear sec_accept_present for any other header so a partial value cannot continue across an intervening header. The advisory documents no separate workaround; updating to a fixed release is the complete fix. Note that this is a moderate-priority protocol-validation flaw (CWE-345), not a memory-safety or high-severity emergency, and the assessed AC:H reflects that exploitation benefits only an attacker who never observed the client's handshake request.

Affected VersionsENISA

Zephyr 2.1.0 <4.3.2
Zephyr 4.4.0 <4.5.0

Affected Packages

euvd zephyr fix: 4.3.2, 4.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected code lives in the Zephyr network stack's WebSocket client, which parses the server's HTTP response through subsys/net/lib/http/http_parser.c and validates the Sec-WebSocket-Accept header inside on_header_value(). RFC 6455 defines that value as base64(SHA-1(client_key || GUID)), a per-connection binding the client is required to check; instead the code called strncmp(at, str, length) with length taken from the value the server sent, so the check degenerated into a prefix test, and a zero-length value made strncmp() return equality with no comparison at all. The callback also cleared sec_accept_present after the first delivered chunk, so a value split across receive-buffer boundaries was only partially examined - and http_parser.c does invoke on_header_value with length 0 for an empty header, so that path is genuinely reachable from remote input. The root cause is CWE-345 (insufficient verification of data authenticity): the client never checked the HTTP status code or the Upgrade:/Connection: headers, leaving ctx->sec_accept_ok as the sole WebSocket-specific gate, and the same weak path is inherited by in-tree callers subsys/net/lib/mqtt/mqtt_transport_websocket.c and subsys/net/lib/ocpp/ocpp.c. Because the accept value is not a secret - an endpoint or on-path observer of the request can compute it - the security impact is confined to parties that never saw the handshake (replaying intermediaries, off-path injectors, or non-WebSocket endpoints the client was induced to contact); the fix (commit 971a304afacf2bc72608ff3fc8cd23a74893654a) adds a sec_accept_matched counter in websocket_internal.h (uint8_t, bounded by the 28-byte expected value), matches each chunk at the position reached so far, rejects overrunning chunks, and clears sec_accept_present in on_header_field() for any other header.

Know when Zephyr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyr) PRIMARY 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

Network-reachable and unauthenticated (PR:N), but AC:H because the attacker must be an off-path/intermediary party that never saw the request; C:L/I:L for unverified-peer data exchange, A:N and no memory impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The Zephyr WebSocket client validates the server's handshake response in on_header_value() in subsys/net/lib/websocket/websocket.c. The comparison was performed as strncmp(at, str, length), where length is the length of the value the server sent rather than the length of the expected value, so the check only asked whether the received value was a prefix of the expected base64(SHA-1(key || GUID)). A server that returned a handful of correct characters passed, and a response carrying an empty Sec-WebSocket-Accept: header caused strncmp() to be called with a count of zero, which returns 0 and set ctx->sec_accept_ok with no comparison performed at all. The header-value callback also cleared ctx->sec_accept_present after the first chunk, so a value split across receive-buffer boundaries was only ever examined in part.

ctx->sec_accept_ok is the sole WebSocket-specific gate in websocket_connect(); the client does not check the HTTP status code or the Upgrade:/Connection: headers. Any HTTP response containing an empty or prefix-matching Sec-WebSocket-Accept header therefore completed the handshake, after which the socket is finalized as a WebSocket and all further peer bytes are parsed as frames. The affected path is driven directly by remote input through subsys/net/lib/http/http_parser.c, and is reached by every user of websocket_connect(), including MQTT over WebSocket (subsys/net/lib/mqtt/mqtt_transport_websocket.c) and subsys/net/lib/ocpp/ocpp.c.

The Sec-WebSocket-Accept exchange is not a secret-based authentication -- an endpoint or on-path attacker that sees the request can compute the expected value -- so the impact is bounded to parties that never observed the handshake request: a caching or transparent intermediary replaying a canned response, an off-path attacker injecting a spoofed response, or a non-WebSocket endpoint the client was induced to talk to. For those, the per-connection binding that RFC 6455 requires the client to enforce provided no protection at all, letting a single crafted response convince the device it holds a live WebSocket session and causing it to send application data to, and accept frames from, an unverified peer. There is no memory-safety consequence.

The fix compares each delivered chunk against the expected value at the position reached so far, refuses a chunk that would overrun it, and accepts only once every byte of the expected value -- and no more -- has been matched; on_header_field() now also clears the flag for any other header so a partial value cannot be continued across an intervening header.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
popular embedded/IoT RTOS; only WebSocket-client users actually exposed
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy