Use After Free Affecting libwebsockets package, versions <4.0.20-2ubuntu1.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.41% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-LIBWEBSOCKETS-13653300
  • published26 Feb 2026
  • disclosed20 Oct 2025

Introduced: 20 Oct 2025

CVE-2025-11677  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 libwebsockets to version 4.0.20-2ubuntu1.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libwebsockets package and not the libwebsockets package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1