Vulnerability · Published Mar 3, 2025 · Assigned by GovTech CSG
CVE-2025-1866Undefined Behavior Due to Out-of-Bounds Pointer Arithmetic in libwebsockets
Critical 10.0
In plain English
A critical-severity memory corruption in libwebsockets from warmcat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities).
Official description
Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in warmcat libwebsockets allows Pointer Manipulation, potentially leading to out-of-bounds memory access. This issue affects libwebsockets before 4.3.4 and is present in code built specifically for the Win32 platform. By default, the affected code is not executed unless one of the following conditions is met: LWS_WITHOUT_EXTENSIONS (default ON) is manually set to OFF in CMake. LWS_WITH_HTTP_STREAM_COMPRESSION (default OFF) is manually set to ON in CMake. Despite these conditions, when triggered in affected configurations, this vulnerability may allow attackers to manipulate pointers, potentially leading to memory corruption or unexpected behavior.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| warmcat | libwebsockets | 0 – before <4.3.4 |
Weakness: CWE-119 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H