{"id":"CVE-2026-5067","published":"2026-06-09T06:01:02Z","modified":"2026-10-15T22:10:25Z","title":"Out-of-bounds read/write in HTTP WebSocket upgrade via non-null-terminated Sec-WebSocket-Key","vendor":"zephyrproject-rtos","product":"Zephyr","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00643,"percentile":0.51763,"provenance":"source"},"cwes":[{"id":"CWE-170","name":"Improper Null Termination"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-wgr4-9pwq-94vj","tags":[]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":10.35},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"zephyrproject-rtos","affectedVersions":[{"vendor":"zephyrproject-rtos","product":"Zephyr","versions":[">= 3.7.0, < 4.3.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-06-09T13:11:48.752906Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-35348","exploited":false,"provenance":"source"}}