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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"cesanta:mongoose": [
"< 7.24"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-141472",
"id": "CVE-2026-141472",
"imported": "2026-12-03T21:20:36.288Z",
"modified": "2026-12-03T01:20:24.837Z",
"published": "2026-12-01T21:17:11.170Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-141472"
},
{
"affected": {
"Cesanta:Mongoose": [
"< 7.24"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-140704",
"id": "EUVD-2026-140704",
"imported": "2026-12-03T21:20:36.288Z",
"modified": "2026-12-02T15:03:13Z",
"published": "2026-12-01T20:31:17Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-140704"
}
]
}