{"id":"CVE-2026-141472","summary":"Mongoose: Pre-authentication heap out-of-bounds read in built-in TLS ClientHello extension parsing","details":"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.","aliases":["GHSA-5pqr-x9r9-jx3h"],"modified":"2026-12-01T22:00:22.814033593Z","published":"2026-12-01T20:31:17.335Z","database_specific":{"cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141472.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141472.json"},{"type":"FIX","url":"https://github.com/cesanta/mongoose/commit/22a94c09060c5b95dfc95eab2d1e4556a72f62a2"},{"type":"WEB","url":"https://github.com/cesanta/mongoose/releases/tag/7.24"},{"type":"ADVISORY","url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-5pqr-x9r9-jx3h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-141472"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cesanta/mongoose","events":[{"introduced":"0"},{"fixed":"91b87a6bd8568f101680d4fc0db3d8773f74eb6c"},{"fixed":"22a94c09060c5b95dfc95eab2d1e4556a72f62a2"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"7.24"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"22a94c09060c5b95dfc95eab2d1e4556a72f62a2"}]},{"range":[{"fixed":"91b87a6bd8568f101680d4fc0db3d8773f74eb6c"}],"source":"REFERENCES_TAG","original_tag":"7.24"}]}}],"versions":["7.23","7.22","7.21","7.20","7.19","7.18","7.17","7.16","7.15","7.14","7.13","7.12","7.11","7.8","7.7","7.6","7.5","7.4","7.3","7.2","7.1","7.0","6.18","6.17","6.16","6.15","6.14","6.13","6.12","6.11","6.10","6.9","6.7","6.6","6.5","6.4","6.3","6.2","6.1","6.0","5.6","5.5_20140120","5.5","5.4","5.3","5.2","5.1","5.0","4.1","4.0","3.8","3.7","3.6","3.5","3.4","3.3","3.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-141472.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}