CVE-2026-141472 Mongoose: Pre-authentication heap out-of-bounds read in built-in TLS ClientHello extension parsing
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- Debian
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cesanta mongoose | < 7.24; = < 7.24 | 7.24 | Fixed |
| debian/mongoose(Debian 14) | < 7.24+ds-1; = 7.21+ds-1; = 7.21+ds-1~bpo13+1; = 7.21+ds-2 +5 more | 7.24+ds-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cesanta mongoose | = < 7.24 | No fix listed |
| cesanta mongoose | < 7.24 | 7.24 |
| debian/mongoose(Debian:14) | < 7.24+ds-1 | 7.24+ds-1 |
| debian/mongoose(Debian:14) | = 7.21+ds-1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.21+ds-1~bpo13+1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.21+ds-2 | No fix listed |
| debian/mongoose(Debian:14) | = 7.22+ds-1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.22+ds-1~bpo13+1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.23+ds-1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.23+ds-1~bpo13+1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.24+ds-1~bpo13+1 | No fix listed |
References
- https://github.com/cesanta/mongoose/security/advisories/GHSA-5pqr-x9r9-jx3h exploit vendor-advisory
- https://github.com/cesanta/mongoose/commit/22a94c09060c5b95dfc95eab2d1e4556a72f62a2 patch
- https://github.com/cesanta/mongoose/releases/tag/7.24 release-notes
- ENISA EUVD EUVD-2026-140704 third-party-advisory
- Debian Security Tracker CVE-2026-141472 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2588209 issue-tracking
- www.cve.org
- nvd.nist.gov