Integer Overflow or Wraparound Affecting cesanta/mongoose package, versions [,7.18)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.07% (21st 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 Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-CESANTAMONGOOSE-13147794
  • published30 Sept 2025
  • disclosed29 Sept 2025
  • creditcainiao159357

Introduced: 29 Sep 2025

CVE-2025-51495  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade cesanta/mongoose to version 7.18 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 Integer Overflow or Wraparound in the mg_ws_cb function. An attacker can cause the application to crash by sending a specially crafted WebSocket request containing ofs=0.

CVSS Base Scores

version 4.0
version 3.1