CVE-2018-20355

An invalid write of 8 bytes due to a use-after-free vulnerability in the mg_http_free_proto_data_cgi function call in mongoose.c in Cesanta Mongoose Embedded…

published June 10, 2019

CVSS
—
EPSS
4%
Percentile
89.3
In the wild
Unconfirmed
What it is

⚠️ A use-after-free vulnerability in Cesanta Mongoose could lead to some serious trouble! An invalid write of 8 bytes could crash applications or even allow remote code execution. 🛡️ Think of this like leaving a restaurant where the chef forgot to take your name off the reservation list. If someone else swoops in after you leave, they could end up at your table and take your order — in this case, that order could be malicious code! This vulnerability can lead to application crashes, rendering your service unavailable, or worse, allow an attacker to execute arbitrary code on your server. That's a nightmare scenario for any developer!

Put simply

Think of this like leaving a restaurant where the chef forgot to take your name off the reservation list. If someone else swoops in after you leave, they could end up at your table and take your order — in this case, that order could be malicious code! The issue lies in the mg_http_free_proto_data_cgi function in Mongoose version 6.13 and earlier, where an invalid memory write occurs after the memory has already been freed, leading to potentially exploitable conditions.

What to do

This vulnerability can lead to application crashes, rendering your service unavailable, or worse, allow an attacker to execute arbitrary code on your server. That's a nightmare scenario for any developer! To protect against this vulnerability, upgrade to Mongoose version 6.14 or later. Regularly audit your application's components and ensure proper memory management practices are in place to prevent similar vulnerabilities. 📚 You've got this! By updating your systems and following best practices, you can keep your applications safe and sound. 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.03574 · 89.3th percentile
Published
2019-06-10T16:23Z
EPSS history
Timeline
  • 10 JUN 16:23Z
    An invalid write of 8 bytes due to a use-after-free vulnerability in the mg_http_free_proto_data_cgi function call in mongoose.c in Cesanta Mongoose Embedded…
    cvelistv5