Stack-based Buffer Overflow in Libwebsockets by Warmcat
CVE-2025-11678
7.5HIGH
What is CVE-2025-11678?
A stack-based buffer overflow vulnerability exists in libwebsockets, specifically in the lws_adns_parse_label function. When the LWS_WITH_SYS_ASYNC_DNS flag is enabled during compilation, it allows an attacker to exploit the DNS request handling. By sniffing a DNS request and crafting a response with a label that exceeds the maximum allowed length, the attacker can overflow the label_stack, leading to potential system instability or unauthorized access.
Affected Version(s)
libwebsocket 4.0 <= 4.4.2
libwebsocket 4.0 <= 4.3.6
References
CVSS V4
Score:
7.5
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Adjacent Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Raffaele Bova at Nozomi Networks