☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-11677

CVE-2025-11677 Use After Free in Warmcat
📅 PUBLISHED: 2025-10-20 13:41 UTC 🔄 UPDATED: 2026-09-23 20:27 UTC
[ OFFICIAL PATCH DEPLOYED ↓ ] FIX: LIKELY — 2 independent sources confirm fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.40%
👁️
0.40% probability
10.1× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
Country: USA License: Commercial
Patch available — upgrade to latest release
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
6.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-11677 is a Use After Free (UAF) vulnerability in the WebSocket server implementation of the warmcat libwebsockets library. The flaw resides in the lws_handshake_server function and can be triggered when a user provides a callback function that handles the LWS_CALLBACK_HTTP_CONFIRM_UPGRADE event. Under specific configurations, an attacker can cause a denial of service (DoS) by exploiting the use of freed memory. No CVSS score, EPSS score, or public exploit code has been released at this time. The vendor has not yet provided a patch.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the libwebsockets library, which is a C library for WebSocket clients and servers. It is commonly used in embedded systems, IoT devices, and applications requiring real-time communication. Organizations using libwebsockets in their software supply chain should monitor for updates and assess their exposure.

CVSS Breakdown & Threat Level

  • CVSS Score: 0.0 (Not yet assigned)
  • Attack Vector: Network (likely)
  • Attack Complexity: High (requires specific callback configuration)
  • Privileges Required: None
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: None
  • Integrity Impact: None
  • Availability Impact: High (Denial of Service)
  • Threat Level: Medium (due to limited exploitability and no public PoC)

Deep Dive & Mechanics

The vulnerability is a classic Use After Free (CWE-416) in the WebSocket handshake process. When a server application registers a callback for LWS_CALLBACK_HTTP_CONFIRM_UPGRADE, the library may free a memory buffer during the handshake but later attempt to access it. This can occur if the callback performs an action that deallocates memory (e.g., closing the connection or modifying internal state) while the handshake is still in progress.

The specific code path is in lws_handshake_server, which processes incoming HTTP upgrade requests. If the user-provided callback triggers a reentrant or asynchronous operation that frees the connection context, subsequent access to that context leads to a use-after-free condition. This can crash the server or cause unpredictable behavior.

Vulnerable vs. Patched Code

Since no patch is available, a direct comparison cannot be made. However, the vulnerable pattern typically involves:

// Vulnerable pattern (pseudo-code)
int lws_handshake_server(struct lws *wsi) {
    // ... allocate memory for wsi->user_space
    if (user_callback(wsi, LWS_CALLBACK_HTTP_CONFIRM_UPGRADE, ...) < 0) {
        // callback may free wsi->user_space
        // but code continues to use it
    }
    // Use after free: accessing wsi->user_space after callback
    memcpy(wsi->user_space, ...);
}

A patched version would either:

  • Check if the memory is still valid after the callback.
  • Prevent the callback from freeing memory during the handshake.
  • Use reference counting to ensure memory is not freed prematurely.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A server using libwebsockets with a callback for LWS_CALLBACK_HTTP_CONFIRM_UPGRADE.
  • Ability to send a crafted HTTP upgrade request.

Exploitation Steps:

  1. Identify a target server that uses libwebsockets and has a custom callback for LWS_CALLBACK_HTTP_CONFIRM_UPGRADE.
  2. Send a WebSocket upgrade request (HTTP GET with Upgrade: websocket and Connection: Upgrade headers).
  3. The server's callback will be invoked. If the callback performs an action that frees memory (e.g., closing the connection), the subsequent use of that memory will cause a crash.

Example Request:

GET /chat HTTP/1.1
Host: target.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Version: 13

Note: No public exploit code is available. This is a theoretical exploitation path.

Blue Team

Detection:

  • Monitor for crashes or segmentation faults in processes using libwebsockets.
  • Look for repeated HTTP upgrade requests followed by connection resets.
  • Use memory debugging tools (e.g., AddressSanitizer) to detect use-after-free in development.

Mitigation:

  • If using libwebsockets, avoid freeing memory in the LWS_CALLBACK_HTTP_CONFIRM_UPGRADE callback.
  • Implement a workaround by deferring memory deallocation until after the handshake completes.
  • Apply any vendor patch as soon as it becomes available.

Indicators of Compromise (IOCs)

  • Network: HTTP requests with Upgrade: websocket header targeting servers with custom callbacks.
  • System: Application crashes with segmentation faults in lws_handshake_server.
  • Logs: Error messages indicating use-after-free or invalid memory access in libwebsockets.

Detection Engineering

YARA Rule

rule CVE_2025_11677_Libwebsockets_UAF {
    meta:
        description = "Detects use-after-free pattern in libwebsockets handshake"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-11677"
    strings:
        $s1 = "lws_handshake_server" ascii wide
        $s2 = "LWS_CALLBACK_HTTP_CONFIRM_UPGRADE" ascii wide
        $s3 = "user_callback" ascii wide
    condition:
        all of them
}

Sigma Rule

title: CVE-2025-11677 - Use After Free in libwebsockets
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects potential exploitation of CVE-2025-11677 via crash logs
author: Valters IT
date: 2025-04-10
logsource:
    category: application
    product: libwebsockets
detection:
    selection:
        EventID: 1000  # Application Error (Windows)
        Message|contains: "lws_handshake_server"
    condition: selection
falsepositives:
    - Legitimate crashes due to other bugs
level: medium

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-11677 - Potential libwebsockets UAF Exploit"; flow:to_server; content:"Upgrade"; http_header; content:"websocket"; http_header; content:"Sec-WebSocket-Key"; http_header; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: If you use libwebsockets with a custom LWS_CALLBACK_HTTP_CONFIRM_UPGRADE callback, review the callback code to ensure it does not free memory that is still needed by the handshake process.
  2. Short-term: Monitor the vendor's repository for patches. Consider disabling the WebSocket upgrade feature if not required.
  3. Long-term: Apply the official patch from warmcat/libwebsockets once released. Update to the latest version of the library.
  4. Compensating Controls: Use a Web Application Firewall (WAF) to filter malicious upgrade requests. Implement memory safety checks (e.g., AddressSanitizer) in development environments.

Valters IT
DevSecOps & Cyber Threat Intelligence

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-11677/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.