Buffer overflow in Cesanta Mongoose
CVE-2026-5245
A vulnerability was found in Cesanta Mongoose up to 7.20. This impacts the function handle_mdns_record of the file mongoose.c of the component mDNS Record Handler. Performing a manipulation of the argument buf results in stack-based buffer overflow. Remote exploitation of the attack is possible. A high degree of complexity is needed for the attack. The exploitability is said to be difficult. The exploit has been made public and could be used. Upgrading to version 7.21 will fix this issue. The patch is named 0d882f1b43ff2308b7486a56a9d60cd6dba8a3f1. You should upgrade the affected component. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.6 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.007, 54.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Cesanta Mongoose — versions 7.0, 7.1, 7.2
Weakness classification (CWE)
References
- VDB-354826 | Cesanta Mongoose mDNS Record mongoose.c handle_mdns_record stack-based overflow (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-354826 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #770103 | Cesanta Mongoose 7.20 Stack-based Buffer Overflow (Third Party Advisory, VDB Entry, third-party-advisory)
- github.com/cesanta/mongoose/commit/0d882f1b43ff2308b7486a56a9d60cd6dba8a3f1 (Patch, patch)
- github.com/cesanta/mongoose/releases/tag/7.21 (Product, Release Notes, patch)
- github.com/cesanta/mongoose/ (Product, product)