CVE-2026-5245: Cesanta Mongoose mDNS Record mongoose.c handle_mdns_record stack-based overflow
A vulnerability was found in Cesanta Mongoose up to 7.20. This impacts the function handlemdnsrecord 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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5245?
CVE-2026-5245 is classified as a high severity vulnerability due to its potential to cause stack-based overflows.
How do I fix CVE-2026-5245?
To fix CVE-2026-5245, update to Cesanta Mongoose version 7.21 or later, where the vulnerability has been addressed.
What components are affected by CVE-2026-5245?
CVE-2026-5245 affects the mDNS Record Handler component within Cesanta Mongoose versions up to 7.20.
What type of vulnerability is CVE-2026-5245?
CVE-2026-5245 is a stack-based buffer overflow vulnerability that can be exploited through argument manipulation in the handle_mdns_record function.
Can CVE-2026-5245 lead to remote code execution?
Yes, the stack-based overflow vulnerability in CVE-2026-5245 can potentially allow for remote code execution under certain conditions.