Code execution via cumulative DNS label overflow
Published Oct 20, 2025 · Updated Oct 20, 2025
Stack overflow in Warmcat libwebsockets 4 through 4.4.2 allows man-in-the-middle attackers to overwrite memory via forged DNS responses. The lws_adns_parse_label function checks each DNS label substring against the destination size but fails to include bytes copied from earlier substrings, so a segmented oversized label overruns label_stack. Exploitation requires LWS_WITH_SYS_ASYNC_DNS at build time and visibility of a DNS request to forge a matching transaction ID; the overwrite crashes the linked application or enables code execution depending on platform and compiler protections.
Summary
What happened
Stack overflow in Warmcat libwebsockets 4 through 4.4.2 allows man-in-the-middle attackers to overwrite memory via forged DNS responses. The lws_adns_parse_label function checks each DNS label substring against the destination size but fails to include bytes copied from earlier substrings, so a segmented oversized label overruns label_stack. Exploitation requires LWS_WITH_SYS_ASYNC_DNS at build time and visibility of a DNS request to forge a matching transaction ID; the overwrite crashes the linked application or enables code execution depending on platform and compiler protections.
The record
- CVE
- CVE-2025-11678
- Published
- Oct 20, 2025
- Updated
- Oct 20, 2025
- Vendor
- libwebsockets
- Product
- libwebsockets
- Classifications
- CWE-121
- Attack vector
- adjacent
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 20, 2025CVE publishedPublication date reported by the CVE source.
- Oct 20, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.0 <=4.3.6
- Affected versionversion=4.0 <=4.4.2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo