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.
Exploitability
AV:NAC:HPR:NUI:NScope
S:UImpact
C:NI:NA:L3.7/CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L