# CVE-2025-1866: Undefined Behavior Due to Out-of-Bounds Pointer Arithmetic in libwebsockets

- Severity: Critical 10.0 (CVSS:4.0, scored by GovTech CSG) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-03-03T08:44:23.118Z
- Modified: 2026-06-17T08:39:55.853Z
- Weaknesses: CWE-119
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- warmcat libwebsockets: before <4.3.4

## References

- <https://github.com/warmcat/libwebsockets/commit/3f7c79fd57338aca1bf4a1b1f24e324b80d36265> (patch)

## Sources

- CVE List: [CVE-2025-1866](https://www.cve.org/CVERecord?id=CVE-2025-1866), CVE Terms of Use, modified 2025-03-03
- NVD: [CVE-2025-1866](https://nvd.nist.gov/vuln/detail/CVE-2025-1866), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-1866 · Whole record: https://cve.day/CVE-2025-1866.json · Rebuilt by cve.day 2026-11-25T22:58:54.863Z
