CVE-2026-141472 PUBLISHED

Mongoose: Pre-authentication heap out-of-bounds read in built-in TLS ClientHello extension parsing

Assigner: GitHub_M
Reserved: 01.12.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor cesanta
Product mongoose
Versions
  • Version < 7.24 is affected

References

Problem Types

  • CWE-125: Out-of-bounds Read CWE