CVE-2026-73252 Mongoose: Unauthenticated remote heap out-of-bounds read in built-in TLS: off-by-one length check in mg_tls_recv_record() underflows recv_len to SIZE_MAX
HighCVSS 7.5
EPSS 0.38%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
Mongoose is an embedded web server and network library. Prior to 7.23, the built-in TLS stack selected by MG_TLS_BUILTIN in src/tls_builtin.c accepts a TLS 1.3 record whose decrypted size is exactly the 16-byte authentication tag with no plaintext or ContentType byte. In mg_tls_recv_record(), the msgsz length check permits that record and the recv_len calculation underflows to SIZE_MAX, so a later handshake step treats stale buffer contents as a trusted message with an effectively unbounded length. An unauthenticated malicious TLS peer can trigger a heap out-of-bounds read before certificate or Finished validation, causing a remote denial of service. This issue is fixed in version 7.23.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cesanta mongoose | = < 7.23 | No fix listed |
| debian/mongoose(Debian:14) | < 7.23+ds-1 | 7.23+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~bpo13+1 | No fix listed |
| ubuntu/mongoose(Ubuntu:26.10) | All versions | No fix listed |
References
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2552780 issue-tracking
- www.cve.org
- nvd.nist.gov
- https://github.com/cesanta/mongoose/commit/758e301f0c9a9885c1b716195df5fe6d6ac9d53e
- https://github.com/cesanta/mongoose/releases/tag/7.23
- https://github.com/cesanta/mongoose/security/advisories/GHSA-hq58-98f5-2wg3 exploit
- Debian Security Tracker CVE-2026-73252 vendor-advisory
- Ubuntu CVE tracker vendor-advisory