CVE-2025-11677 Details
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 vulnerability has been identified in the WebSocket server implementation of Warmcat Libwebsockets version 4.4. This vulnerability may allow an attacker to cause a denial-of-service condition, but only under specific configurations where the user provides a callback function to handle 'LWS_CALLBACK_HTTP_CONFIRM_UPGRADE'. The issue arises in the 'lws_handshake_server' function when the upgrade header is invalid. The function frees certain data in the WebSocket instance structure and then improperly uses a pointer to the freed data in subsequent operations, creating the potential for exploitation.
The vulnerability can be addressed by modifying the 'lws_handshake_server' function to ensure that the code handling the upgrade confirmation is only executed when the upgrade header is valid. This can be done by enclosing the relevant code in an 'else' branch, preventing the use of freed data.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 20, 2025CISA-ADP
Assessed Oct 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://libwebsockets.org/git/libwebsockets/commit?id=2f082ec31261f556969160143ba94875d783971a | [email protected] | Source CodeVendor |
| https://www.nozominetworks.com/labs/vulnerability-advisories-cve-2025-11677 | [email protected] | AdvisoryBroken Link |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| warmcat libwebsockets | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 20, 2025 | New CVE Received | [email protected] |
Volerion