CVE-2017-7185

HIGH

Cesanta Mongoose Library <6.7 & OS <1.2 Use-After-Free via Multipart POST

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2017-7185. PoCs published by Compass Security.

AI-analyzed exploit summary This advisory details a use-after-free vulnerability in Mongoose OS's HTTP multipart handling, leading to a denial-of-service condition. The issue arises from improper boundary validation in malformed requests, causing a crash due to an uninitialized string being passed to `c_strnstr`.

Description

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.

Exploits (1)

exploitdb WRITEUP
by Compass Security · textdoshardware
https://www.exploit-db.com/exploits/41826

This advisory details a use-after-free vulnerability in Mongoose OS's HTTP multipart handling, leading to a denial-of-service condition. The issue arises from improper boundary validation in malformed requests, causing a crash due to an uninitialized string being passed to `c_strnstr`.

Classification
Writeup 100%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: Mongoose OS <= Release 1.2
No auth needed
Prerequisites: Network access to the Mongoose OS HTTP server
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (6)

Core 6
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/97370
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/540355/100/0/threaded
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/41826/

Scores

CVSS v3 7.5
EPSS 0.1225
EPSS Percentile 95.7%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-416
Status published
Products (2)
cesanta/mongoose_embedded_web_server_library < 6.7
cesanta/mongoose_os < 1.2
Published Apr 10, 2017
Tracked Since Feb 18, 2026