CVE-2026-11404

Cesanta Mongoose Out-of-Bounds Read in MG_TLS_BUILTIN ClientHello Session ID Parsing

Published Jul 9, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 August 1, 2026 at 14:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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
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:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Cesanta
Cesanta mongoose
Vendors & Products Cesanta
Cesanta mongoose
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 28, 2026, 1:39 PM
Reserved
Jun 5, 2026, 5:46 PM
Status
Deferred
Published
Jul 9, 2026, 4:16 PM
Modified
Nov 3, 2026, 9:17 PM