Intel

AIKIDO-2026-350534

cesanta.mongoose is vulnerable to Out-of-bounds Read

Out-of-bounds ReadCVE-2026-52061 Published Aug 13, 2026

78

High Risk

This Affects:

C++cesanta.mongoose
7.17 - 7.21
Fixed in 7.22
Are you affected? Scan for Free

TL;DR

The built-in TLS certificate-chain parser reads per-certificate sizes from a handshake message without validating them against the received record length. An attacker-controlled size drives a heap out-of-bounds read of up to sixteen megabytes during the handshake. A malicious server, or a client under mutual TLS, can disclose adjacent heap memory such as keys and tokens or crash the process, without authentication. The fix bounds each certificate size against the available data.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the built-in TLS backend (MG_TLS_BUILTIN) and parse a peer certificate chain.

Background info

cesanta.mongoose is vulnerable to Out-of-bounds Read in versions 7.17 - 7.21.

How to fix this

Upgrade the cesanta.mongoose library to the patch version.