Use After Free Affecting cesanta/mongoose package, versions [,6.14)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.53% (78th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-CESANTAMONGOOSE-2366184
  • published26 Jan 2022
  • disclosed10 Jun 2019
  • creditUnknown

Introduced: 10 Jun 2019

CVE-2018-20352  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade cesanta/mongoose to version 6.14 or higher.

Overview

cesanta/mongoose is a networking library for C/C++. It implements event-driven non-blocking APIs for TCP, UDP, HTTP, WebSocket, MQTT.

Affected versions of this package are vulnerable to Use After Free. Use-after-free vulnerability in the mg_cgi_ev_handler function 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.

References

CVSS Scores

version 3.1