All reports
Low

libwebsockets: Use After Free in libwebsockets WebSocket server

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-11677

Probability of exploitation in the next 30 days: 0.41%

FIRST EPSS · 2026-11-22

Description

Use After Free in WebSocket server implementation in lws_handshake_server in warmcat libwebsockets may allow an attacker, in specific configurations where the user provides a callback function that handles LWS_CALLBACK_HTTP_CONFIRM_UPGRADE, to achieve denial of service.

A use after free flaw has been discovered in the WebSocket server implementation of libwebsockets. The issue is caused by the lws_handshake_protocol function, specifically when the upgrade header is not valid, the function calls lws_http_transaction_completed, which frees some of the data in the wsi structure, then it calls user_callback_handle_rxflow passing the uppointer and uses it on following strcasecmp calls.