Memory corruption via pre-array pointer arithmetic
Published Mar 3, 2025 · Updated Mar 3, 2025
Memory-bounds error in Warmcat libwebsockets before 4.3.4 allows remote attackers to corrupt memory through crafted compressed streams. The bundled Win32 zlib inftrees.c subtracts 257 from base and extra array pointers, creating pointers before their allocated arrays before indexing them during inflate-table construction. Exposure is limited to Win32 builds that enable extensions or HTTP stream compression through non-default CMake settings, and the undefined behavior can crash or corrupt the hosting process.
Summary
What happened
Memory-bounds error in Warmcat libwebsockets before 4.3.4 allows remote attackers to corrupt memory through crafted compressed streams. The bundled Win32 zlib inftrees.c subtracts 257 from base and extra array pointers, creating pointers before their allocated arrays before indexing them during inflate-table construction. Exposure is limited to Win32 builds that enable extensions or HTTP stream compression through non-default CMake settings, and the undefined behavior can crash or corrupt the hosting process.
The record
- CVE
- CVE-2025-1866
- Published
- Mar 3, 2025
- Updated
- Mar 3, 2025
- Vendor
- libwebsockets
- Product
- libwebsockets
- Classifications
- CWE-119, CAPEC-129, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 3, 2025CVE publishedPublication date reported by the CVE source.
- Mar 3, 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=0 <<4.3.4 changes=[{"at":"patch 4.3.4","status":"unaffected"}]
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