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

Published Mar 3, 2025
·
Updated

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

1 affected component
warmcat libwebsockets<4.3.4

Event History

Mar 3, 2025
CVE Published
via MITRE·08:44 AM
Data Sourced
via MITRE·08:44 AM
DescriptionWeakness
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

How do I fix CVE-2025-1866?

To fix CVE-2025-1866, upgrade libwebsockets to version 4.3.4 or later.

3

What versions are affected by CVE-2025-1866?

CVE-2025-1866 affects all versions of libwebsockets prior to 4.3.4.

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203