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

Published Oct 14, 2026
·
Updated

Mongoose is an embedded web server and network library. Prior to 7.23, the built-in TLS stack selected by MGTLSBUILTIN in src/tlsbuiltin.c accepts a TLS 1.3 record whose decrypted size is exactly the 16-byte authentication tag with no plaintext or ContentType byte. In mgtlsrecvrecord(), the msgsz length check permits that record and the recvlen calculation underflows to SIZEMAX, 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 Software

1 affected component
Cesanta Mongoose<7.23

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mongoose to a version that resolves this vulnerability.

    Fixed in 7.23

Event History

Oct 14, 2026
CVE Published
via MITRE·06:24 PM
Data Sourced
via MITRE·06:24 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Affected deployments use Mongoose versions before 7.23 with the built-in TLS stack selected by MG_TLS_BUILTIN. The vulnerable code is in src/tls_builtin.c.

2

Does exploitation require authentication or a completed TLS handshake?

No. An unauthenticated malicious TLS peer can trigger the issue before certificate or Finished validation.

3

What is the practical impact of exploitation?

The underflow can cause a later handshake step to treat stale buffer data as a message with an effectively unbounded length, leading to a heap out-of-bounds read and remote denial of service.

4

What should teams do if they are vulnerable?

Upgrade Mongoose to version 7.23, which fixes the issue. Prioritize systems that expose built-in TLS services to untrusted network peers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203