CVE-2025-1866
JSON

10.0critical

Undefined Behavior Due to Out-of-Bounds Pointer Arithmetic in libwebsockets

Severity
10.0critical CVSS:4.0 by GovTech CSG
Exploit likelihood
0.43% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GovTech CSG

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

Product or packageVersionsReported by
warmcat libwebsocketsbefore <4.3.4CVE List

Classification

CWE-119

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

La vulnerabilidad de restricción inadecuada de operaciones dentro de los límites de un búfer de memoria en libwebsockets de warmcat permite la manipulación de punteros, lo que puede provocar un acceso a la memoria fuera de los límites. Este problema afecta a libwebsockets anteriores a la versión 4.3.4 y está presente en el código creado específicamente para la plataforma Win32. De forma predeterminada, el código afectado no se ejecuta a menos que se cumpla una de las siguientes condiciones: LWS_WITHOUT_EXTENSIONS (predeterminado ON) se configura manualmente en OFF en CMake. LWS_WITH_HTTP_STREAM_COMPRESSION (predeterminado OFF) se configura manualmente en ON en CMake. A pesar de estas condiciones, cuando se activa en las configuraciones afectadas, esta vulnerabilidad puede permitir a los atacantes manipular punteros, lo que puede provocar una corrupción de la memoria o un comportamiento inesperado.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-1866 changed 2025-03-03CVE Terms of Use
NVDCVE-2025-1866 changed 2026-06-17Public domain