# CVE-2026-5067: Out-of-bounds read/write in HTTP WebSocket upgrade via non-null-terminated Sec-WebSocket-Key

- Severity: Critical 9.8 (CVSS:3.1, scored by zephyr) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-09T06:01:02.559Z
- Modified: 2026-10-15T23:17:37.387Z
- Weaknesses: CWE-170, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: zephyr

## Description

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.

(As written by CVE List.)

## Affected

- Zephyr: from 3.7.0 before 4.3.1
- zephyrproject zephyr: from 3.7.0 up to 4.3.0

## References

- <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-wgr4-9pwq-94vj> (exploit, patch, vendor-advisory)

## Sources

- CVE List: [CVE-2026-5067](https://www.cve.org/CVERecord?id=CVE-2026-5067), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-5067](https://nvd.nist.gov/vuln/detail/CVE-2026-5067), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-5067 · Whole record: https://cve.day/CVE-2026-5067.json · Rebuilt by cve.day 2026-11-25T22:59:24.076Z
