CVE-2018-20356

An invalid read 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

⚠️ Oops! A use-after-free vulnerability in Mongoose could let attackers crash your app or even execute code — that’s like a waiter dropping your dinner on the floor and then trying to serve it again! 🍽️ Think of this vulnerability like a library that forgets to remove a book from circulation after it’s been checked out — someone could sneak in a request to use that old book and accidentally cause chaos! An attacker could exploit this flaw to read memory that has already been freed, leading to an application crash or, in a worst-case scenario, execute arbitrary code. This could put your application at risk, potentially allowing unauthorized access to sensitive data or system controls.

Put simply

Think of this vulnerability like a library that forgets to remove a book from circulation after it’s been checked out — someone could sneak in a request to use that old book and accidentally cause chaos! The flaw resides in the mg_http_free_proto_data_cgi function in Mongoose, where an invalid read of 8 bytes occurs after a memory area has been freed. This use-after-free condition paves the way for denial of service or remote code execution.

What to do

An attacker could exploit this flaw to read memory that has already been freed, leading to an application crash or, in a worst-case scenario, execute arbitrary code. This could put your application at risk, potentially allowing unauthorized access to sensitive data or system controls. To protect your application, upgrade Mongoose to version 6.14 or later, where this issue is resolved. It’s also wise to review your use of memory management practices to prevent similar vulnerabilities. This is fixable! Update now and you’ll bolster your defenses like a pro. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.03574 · 89.3th percentile
Published
2019-06-10T16:26Z
EPSS history
Timeline
  • 10 JUN 16:26Z
    An invalid read 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