Critical
Security advisory
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 Web Server Library 6.13 and earlier allows a denial of service (application crash) or remote code execution.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-20356
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:09 UTC · Revision 1
Source evidence
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 Web Server Library 6.13 and earlier allows a denial of service (application crash) or remote code execution.
osv:CVE-2018-20356
Complete source record
{
"id": "69b1af2dba6cc142e8907275de3f78516352366eb398716e5dbaa12626a18151",
"url": "https://osv.dev/vulnerability/CVE-2018-20356",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-20356",
"summary": "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 Web Server Library 6.13 and earlier allows a denial of service (application crash) or remote code execution.",
"evidence": "osv:CVE-2018-20356",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-20356",
"aliases": [
"CVE-2018-20356"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cesanta/mongoose",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "95afa323c0e7740151f661629616daebe2915b61"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "6.13"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"6.13",
"6.12",
"6.11",
"6.10",
"6.9",
"6.7",
"6.6",
"6.5",
"6.4",
"6.3",
"6.2",
"6.1",
"6.0",
"5.6",
"5.5_20140120",
"5.5",
"5.4",
"5.3",
"5.2",
"5.1",
"5.0",
"4.1",
"4.0",
"3.8",
"3.7",
"3.6",
"3.5",
"3.4",
"3.3",
"3.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20356.json"
}
}
],
"modified": "2026-10-24T10:31:03.716274655Z",
"provider": "osv",
"references": [
"https://github.com/insi2304/mongoose-6.13-fuzz/blob/master/Simplest_Web_Server_Use_After_Free-read_mg_http_free_proto_data_cgi.png"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-20356",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 440328,
"published_at": "2019-06-10T17:29:02.173+00:00"
}