High
Security advisory
Use-after-free vulnerability in the mg_http_multipart_wait_for_boundary function in mongoose.c in Cesanta Mongoose Embedded Web Server Library 6.7 and earlier and Mongoose OS 1.2 and earlier allows remote attackers to cause a denial of service (crash) via a multipart/form-data POST request without a MIME boundary string.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-7185
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:03 UTC · Revision 1
Source evidence
Use-after-free vulnerability in the mg_http_multipart_wait_for_boundary function in mongoose.c in Cesanta Mongoose Embedded Web Server Library 6.7 and earlier and Mongoose OS 1.2 and earlier allows remote attackers to cause a denial of service (crash) via a multipart/form-data POST request without a MIME boundary string.
osv:CVE-2017-7185
Complete source record
{
"id": "57838f3cd1646d0a7551f0ecb21ade0372653e71e157c31a3ca8ace4885f3038",
"url": "https://osv.dev/vulnerability/CVE-2017-7185",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-7185",
"summary": "Use-after-free vulnerability in the mg_http_multipart_wait_for_boundary function in mongoose.c in Cesanta Mongoose Embedded Web Server Library 6.7 and earlier and Mongoose OS 1.2 and earlier allows remote attackers to cause a denial of service (crash) via a multipart/form-data POST request without a MIME boundary string.",
"evidence": "osv:CVE-2017-7185",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2017-7185",
"aliases": [
"CVE-2017-7185"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cesanta/mongoose",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "4d9f8168b8bb264d4160b219b10ad43d2eb7c88a"
},
{
"fixed": "b8402ed0733e3f244588b61ad5fedd093e3cf9cc"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:cesanta:mongoose_embedded_web_server_library:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "6.7"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "b8402ed0733e3f244588b61ad5fedd093e3cf9cc"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"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-2017-7185.json",
"vanir_signatures": [
{
"id": "CVE-2017-7185-72c6ea9f",
"digest": {
"length": 655,
"function_hash": "41249086661872666392535856094281661402"
},
"source": "https://github.com/cesanta/mongoose/commit/b8402ed0733e3f244588b61ad5fedd093e3cf9cc",
"target": {
"file": "mongoose.c",
"function": "mg_http_multipart_wait_for_boundary"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2017-7185-74486d70",
"digest": {
"threshold": 0.9,
"line_hashes": [
"339889822355170891032407714099899695797",
"207737993900940319777937554213307134569",
"42031312556500484625743211277575000719"
]
},
"source": "https://github.com/cesanta/mongoose/commit/b8402ed0733e3f244588b61ad5fedd093e3cf9cc",
"target": {
"file": "mongoose.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:05:17Z"
}
},
{
"ranges": [
{
"repo": "https://github.com/cesanta/mongoose-os",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "042eb437973a202d00589b13d628181c6de5cf5b"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "042eb437973a202d00589b13d628181c6de5cf5b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.2",
"1.1",
"1.0-rc1",
"beta4",
"beta3",
"beta2",
"Beta",
"alpha2.1",
"alpha2",
"alpha1.1",
"alpha1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-7185.json",
"vanir_signatures": [
{
"id": "CVE-2017-7185-3cd5eefc",
"digest": {
"threshold": 0.9,
"line_hashes": [
"339889822355170891032407714099899695797",
"207737993900940319777937554213307134569",
"42031312556500484625743211277575000719"
]
},
"source": "https://github.com/cesanta/mongoose-os/commit/042eb437973a202d00589b13d628181c6de5cf5b",
"target": {
"file": "mongoose/mongoose.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2017-7185-94a9b390",
"digest": {
"length": 655,
"function_hash": "41249086661872666392535856094281661402"
},
"source": "https://github.com/cesanta/mongoose-os/commit/042eb437973a202d00589b13d628181c6de5cf5b",
"target": {
"file": "mongoose/mongoose.c",
"function": "mg_http_multipart_wait_for_boundary"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:05:17Z"
}
}
],
"modified": "2026-10-24T14:05:17.621971544Z",
"provider": "osv",
"references": [
"https://www.exploit-db.com/exploits/41826/",
"https://github.com/cesanta/mongoose-os/commit/042eb437973a202d00589b13d628181c6de5cf5b",
"https://github.com/cesanta/mongoose/commit/b8402ed0733e3f244588b61ad5fedd093e3cf9cc",
"https://www.compass-security.com/fileadmin/Datein/Research/Advisories/CVE-2017-7185_mongoose_os_use_after_free.txt"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:cesanta:mongoose_os:*:*:*:*:*:*:*:*"
],
"vendor_product": "cesanta:mongoose_os",
"extracted_events": [
{
"range": [
{
"last_affected": "1.2"
}
],
"source": "CPE_RANGE"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2017-7185",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 442929,
"published_at": "2017-04-10T15:59:00.503+00:00"
}