Out-of-bounds Write Affecting cesanta/mongoose package, versions [,6.15)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
17.46% (97th 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 IDSNYK-UNMANAGED-CESANTAMONGOOSE-2366183
  • published26 Jan 2022
  • disclosed24 Jun 2019
  • creditUnknown

Introduced: 24 Jun 2019

CVE-2019-12951  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade cesanta/mongoose to version 6.15 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 Out-of-bounds Write. An issue was discovered in Mongoose before 6.15. The parse_mqtt() function in mg_mqtt.c has a critical heap-based buffer overflow.

CVSS Scores

version 3.1