Stack-based Buffer Overflow

CVE-2025-11678

Summary

Stack-based Buffer Overflow in lws_adns_parse_label in warmcat libwebsockets

Impact

It allows, when the LWS_WITH_SYS_ASYNC_DNS flag is enabled during compilation, to overflow the label_stack, if the attacker is able to sniff a DNS request in order to craft a response with a matching id containing a label longer than the maximum.

Issue Date

October 8, 2025

Affects

This issue affects libwebsockets from (including) 4 and up to (including) 4.3.6, 4.4.2

CVE Name

CVE-2025-11678

CVSS Details

CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS Score

7.5

Solution

Update the library to its latest stable release, if not possible backport the fix commit 2bb9598562b37c942ba5b04bcde3f7fdf66a9d3a

Mitigations

Acknowledgements

Raffaele Bova of Nozomi Networks

Nozomi Threat Intelligence

Nozomi Networks Labs curates threat and vulnerability insights that are continuously fed into the Nozomi Networks platform to ensure our sensors can detect existing and emerging threats and vulnerabilities that threaten customers environments.

Learn more

Latest Labs Blogs

Breaking the Encryption: Analyzing the AutomationDirect CLICK Plus PLC Protocol 

Read

Lights Out: How One Tiny Message Can Crash Your Shelly Pro 4PM and Lock You Out of Your Smart Home

Read

Hacking the Engineer’s Workstation: Compromising AutomationDirect Productivity Suite to Breach the OT Perimeter

Read
View All

Take the next step.

Discover how easy it is to identify and respond to cyber threats by automating your OT and IoT asset discovery, inventory, and management.