Description
Cesanta Mongoose before 7.22 contains an out-of-bounds read in the built-in TLS server function mg_tls_server_recv_hello(), which uses an attacker-controlled session_id_len byte from a TLS ClientHello as a buffer index without validating it against the length of received data. A remote, unauthenticated attacker can send a single crafted ClientHello with an oversized session id length to read past the receive buffer, crashing any HTTPS, MQTTS, or WSS service built on MG_TLS_BUILTIN.
Published: 2026-07-09
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Cesanta Mongoose versions prior to 7.22 contain an out‑of‑bounds read in the built‑in TLS server function mg_tls_server_recv_hello(). The flaw arises when a TLS ClientHello includes a session_id_len byte that is larger than the actual data received; the code uses this value as a buffer index without bounds checking, reading past the allocated receive buffer. This read can cause a crash of the process, effectively denying service for any HTTPS, MQTTS, or WSS endpoint that uses the MG_TLS_BUILTIN implementation.

Affected Systems

Applications or services that embed the Cesanta Mongoose library in a version earlier than 7.22 and employ the built‑in TLS server will be affected. This includes web servers, MQTT brokers, or any service exposing WebSocket over TLS, as they rely on mg_tls_server_recv_hello() for the initial handshake.

Risk and Exploitability

The CVSS score of 8.7 marks the vulnerability as high severity, and the EPSS score of less than 1% indicates a low probability of exploitation in the wild, though the lack of authentication makes the attack trivial to launch. The vulnerability is not listed in CISA’s KEV catalog. An attacker can send a single crafted ClientHello packet containing an oversized session identifier to trigger the read past the buffer, leading to a crash of the entire service. Because the flaw operates prior to authentication, it is fully remote and unauthenticated.

Generated by OpenCVE AI on July 29, 2026 at 12:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Cesanta Mongoose to version 7.22 or a later release that contains the out‑of‑bounds read fix.
  • Restart all services that load the Mongoose library so that the updated code is in use.
  • Continuously monitor system and application logs for TLS handshake failures, abnormal terminations or crash reports that occur after the upgrade to confirm the vulnerability has been mitigated.

Generated by OpenCVE AI on July 29, 2026 at 12:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
Title Cesanta Mongoose before 7.22 Out-of-Bounds Read in MG_TLS_BUILTIN ClientHello Session ID Parsing Cesanta Mongoose Out-of-Bounds Read in MG_TLS_BUILTIN ClientHello Session ID Parsing
References

Fri, 10 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Title Cesanta Mongoose < 7.22 Out-of-Bounds Read in MG_TLS_BUILTIN ClientHello Session ID Parsing Cesanta Mongoose before 7.22 Out-of-Bounds Read in MG_TLS_BUILTIN ClientHello Session ID Parsing
CPEs cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:*

Thu, 09 Jul 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Cesanta
Cesanta mongoose
Vendors & Products Cesanta
Cesanta mongoose

Thu, 09 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 09 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
Description Cesanta Mongoose before 7.22 contains an out-of-bounds read in the built-in TLS server function mg_tls_server_recv_hello(), which uses an attacker-controlled session_id_len byte from a TLS ClientHello as a buffer index without validating it against the length of received data. A remote, unauthenticated attacker can send a single crafted ClientHello with an oversized session id length to read past the receive buffer, crashing any HTTPS, MQTTS, or WSS service built on MG_TLS_BUILTIN.
Title Cesanta Mongoose < 7.22 Out-of-Bounds Read in MG_TLS_BUILTIN ClientHello Session ID Parsing
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

Cesanta Mongoose
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:48:21.014Z

Reserved: 2026-06-05T17:46:47.767Z

Link: CVE-2026-11404

cve-icon Vulnrichment

Updated: 2026-07-09T16:09:49.927Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T12:30:03Z

Weaknesses