{"id":"CVE-2026-141472","aliases":["CVE-2026-141472"],"related":[],"kind":"vulnerability","state":"published","title":"Mongoose: Pre-authentication heap out-of-bounds read in built-in TLS ClientHello extension parsing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-12-01T20:31:17.335Z","modified":"2026-12-01T20:31:17.335Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.7,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"< 7.24","status":"affected"}],"vendor":"cesanta","product":"mongoose","source":"cvelist"}],"references":[{"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-5pqr-x9r9-jx3h","tags":["x-refsource-confirm"],"sources":["cvelist"]},{"url":"https://github.com/cesanta/mongoose/commit/22a94c09060c5b95dfc95eab2d1e4556a72f62a2","tags":["x-refsource-misc"],"sources":["cvelist"]},{"url":"https://github.com/cesanta/mongoose/releases/tag/7.24","tags":["x-refsource-misc"],"sources":["cvelist"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-141472","url":"https://www.cve.org/CVERecord?id=CVE-2026-141472","licence":"CVE Terms of Use","modified":"2026-12-01T20:31:17.335Z"}],"updatedAt":"2026-12-01T20:42:01.537Z"}