Mongoose: Pre-authentication heap out-of-bounds read in built-in TLS ClientHello extension parsing
- CVE-2026-141472
- EUVD-2026-140704
Description
Mongoose is an embedded web server and network library. Prior to 7.24, a remote unauthenticated TLS client can cause a heap out-of-bounds read in mg_tls_server_recv_hello() in src/tls_builtin.c and the generated mongoose.c when Mongoose uses MG_TLS_BUILTIN and a ClientHello extension block ends with fewer than four bytes. The parser reads the extension length before checking that the type and length header is complete, and related key-share length reads also lack minimum-structure validation, allowing a malformed handshake to terminate the worker or process. This issue is fixed in 7.24.
Text from the CVE.org record.
Recommendation
cesanta mongoose
- If you run a version before 7.24update to 7.24 or later
Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
cesanta mongoose
Affected versions Fixed in before 7.24 7.24
Product versions from the NVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.