CVE-2026-5245
Stack-Based Buffer Overflow in Cesanta Mongoose mDNS Handler
Publication date: 2026-04-02
Last updated on: 2026-04-29
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| cesanta | mongoose | From 7.0 (inc) to 7.21 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-119 | The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. |
| CWE-121 | A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). |
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability impact me? :
Exploitation of this vulnerability can lead to a stack-based buffer overflow, which may allow an attacker to execute arbitrary code or cause a denial of service.
Since the vulnerability can be exploited remotely, it poses a risk to systems running affected versions of Cesanta Mongoose that handle mDNS records.
However, the attack is complex and difficult to perform, which may reduce the likelihood of successful exploitation.
Can you explain this vulnerability to me?
This vulnerability exists in Cesanta Mongoose up to version 7.20, specifically in the function handle_mdns_record within the file mongoose.c, which is part of the mDNS Record Handler component.
The issue arises when the argument 'buf' is manipulated, leading to a stack-based buffer overflow.
This overflow can be exploited remotely, although the attack requires a high degree of complexity and is considered difficult to execute.
An exploit for this vulnerability has been made public.
Upgrading to version 7.21 of Cesanta Mongoose fixes this issue.
What immediate steps should I take to mitigate this vulnerability?
The immediate step to mitigate this vulnerability is to upgrade the affected Cesanta Mongoose component to version 7.21, which contains the fix for this issue.
This vulnerability is caused by a stack-based buffer overflow in the handle_mdns_record function, and remote exploitation is possible, though difficult.
Upgrading to the fixed version is the recommended and effective mitigation.