CVE-2025-1866: Undefined Behavior Due to Out-of-Bounds Pointer Arithmetic in libwebsockets
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:
LWSWITHOUTEXTENSIONS (default ON) is manually set to OFF in CMake. LWSWITHHTTPSTREAMCOMPRESSION (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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-1866?
The severity of CVE-2025-1866 is classified as high due to the potential for pointer manipulation and out-of-bounds memory access.
How do I fix CVE-2025-1866?
To fix CVE-2025-1866, upgrade libwebsockets to version 4.3.4 or later.
What versions are affected by CVE-2025-1866?
CVE-2025-1866 affects all versions of libwebsockets prior to 4.3.4.
What type of vulnerability is CVE-2025-1866?
CVE-2025-1866 is an improper restriction of operations within the bounds of a memory buffer vulnerability.
What are the potential impacts of CVE-2025-1866?
The potential impacts of CVE-2025-1866 include unauthorized access to memory, application crashes, and possible code execution.