Integer overflow in Cesanta Mongoose
CVE-2025-51495
An integer overflow vulnerability exists in the WebSocket component of Mongoose 7.5 thru 7.17. By sending a specially crafted WebSocket request, an attacker can cause the application to crash. If downstream vendors integrate this component improperly, the issue may lead to a buffer overflow.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.004, 37.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- cainiao159357/CVE-2025-51495 (last pushed 2025-09-25)
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, nomi-sec/PoC-in-GitHub). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/cesanta/mongoose (Product)
- github.com/cesanta/mongoose/pull/3131 (Patch, Issue Tracking)
- github.com/cainiao159357/CVE-2025-51495 (Exploit)
This CVE has public exploit evidence. See the latest CVEs with public exploits.