NULL pointer dereference in ESP-IDF - CVE-2026-45541
Published: May 16, 2026
ESP-IDF
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to null pointer dereference in httpd_ws_get_response_subprotocol() in the esp_http_server component when parsing the client-supplied Sec-WebSocket-Protocol header during the WebSocket handshake. A remote attacker can send a malformed header value to cause a denial of service.
The issue is reachable only when WebSocket support is enabled and at least one registered WebSocket URI handler performs subprotocol negotiation by supplying a non-NULL supported_subprotocol.