Cesanta Mongoose vulnerabilities
54 known vulnerabilities affecting cesanta/mongoose.
Total CVEs
54
CISA KEV
0
Public exploits
2
Exploited in wild
1
Severity breakdown
CRITICAL23HIGH20MEDIUM7LOW4
Vulnerabilities
Page 1 of 3
CVE-2024-53900P1HIGHExploitedPoC≥ 8.0.0-rc0, < 8.8.3≥ 7.0.0-rc0, < 7.8.3+2 more2024-12-02
CVE-2024-53900 [HIGH] CWE-89 Mongoose search injection vulnerability
Mongoose search injection vulnerability
Mongoose versions prior to 8.8.3, 7.8.3, 6.13.5, and 5.13.23 are vulnerable to improper use of the $where operator. This vulnerability arises from the ability of the $where clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.
ghsaosv
CVE-2025-23061P2CRITICALCVSS 9.1PoC≥ 8.0.0-rc0, < 8.9.5≥ 7.0.0-rc0, < 7.8.4+1 more2025-01-15
CVE-2025-23061 [CRITICAL] CWE-94 Mongoose search injection vulnerability
Mongoose search injection vulnerability
Mongoose versions prior to 8.9.5, 7.8.4, and 6.13.6 are vulnerable to improper use of the `$where` operator. This vulnerability arises from the ability of the `$where` clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.
NOTE: this issue exists because of an incomplete
ghsaosv
CVE-2017-2894P2CRITICALCVSS 9.8v6.82017-11-07
CVE-2017-2894 [CRITICAL] CWE-787 CVE-2017-2894: An exploitable stack buffer overflow vulnerability exists in the MQTT packet parsing functionality o
An exploitable stack buffer overflow vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6.8. A specially crafted MQTT SUBSCRIBE packet can cause a stack buffer overflow resulting in remote code execution. An attacker needs to send a specially crafted MQTT packet over the network to trigger this vulnerability.
nvd
CVE-2019-19307P2CRITICALCVSS 9.8v6.162019-11-26
CVE-2019-19307 [CRITICAL] CWE-125 CVE-2019-19307: An integer overflow in parse_mqtt in mongoose.c in Cesanta Mongoose 6.16 allows an attacker to achie
An integer overflow in parse_mqtt in mongoose.c in Cesanta Mongoose 6.16 allows an attacker to achieve remote DoS (infinite loop), or possibly cause an out-of-bounds write, by sending a crafted MQTT protocol packet.
nvd
CVE-2026-5244P2CRITICALCVSS 9.8≥ 7.0, < 7.21v7.0+20 more2026-04-02
CVE-2026-5244 [CRITICAL] CWE-119 CVE-2026-5244: A vulnerability has been found in Cesanta Mongoose up to 7.20. This affects the function mg_tls_recv
A vulnerability has been found in Cesanta Mongoose up to 7.20. This affects the function mg_tls_recv_cert of the file mongoose.c of the component TLS 1.3 Handler. Such manipulation of the argument pubkey leads to heap-based buffer overflow. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. Upgrading t
nvd
CVE-2022-2564P3HIGH≥ 6.0.0, < 6.4.6≥ 0, < 5.13.152022-07-29
CVE-2022-2564 [HIGH] CWE-1321 automattic/mongoose vulnerable to Prototype pollution via Schema.path
automattic/mongoose vulnerable to Prototype pollution via Schema.path
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Affected versions of this package are vulnerable to Prototype Pollution. The `Schema.path()` function is vulnerable to prototype pollution when setting the schema object. This vulnerability allows modification of the Object prototype and
ghsaosv
CVE-2017-2891P3CRITICALCVSS 9.8v6.82017-11-07
CVE-2017-2891 [CRITICAL] CWE-416 CVE-2017-2891: An exploitable use-after-free vulnerability exists in the HTTP server implementation of Cesanta Mong
An exploitable use-after-free vulnerability exists in the HTTP server implementation of Cesanta Mongoose 6.8. An ordinary HTTP POST request with a CGI target can cause a reuse of previously freed pointer potentially resulting in remote code execution. An attacker needs to send this HTTP request over the network to trigger this vulnerability.
nvd
CVE-2017-2922P3CRITICALCVSS 9.8v6.82017-11-07
CVE-2017-2922 [CRITICAL] CWE-416 CVE-2017-2922: An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Ce
An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8. A specially crafted websocket packet can cause a buffer to be allocated while leaving stale pointers which leads to a use-after-free vulnerability which can be exploited to achieve remote code execution. An attacker needs to send a
nvd
CVE-2026-5245P3HIGHCVSS 8.1≥ 7.0, < 7.21v7.0+20 more2026-04-02
CVE-2026-5245 [HIGH] CWE-119 CVE-2026-5245: A vulnerability was found in Cesanta Mongoose up to 7.20. This impacts the function handle_mdns_reco
A vulnerability was found in Cesanta Mongoose up to 7.20. This impacts the function handle_mdns_record of the file mongoose.c of the component mDNS Record Handler. Performing a manipulation of the argument buf results in stack-based buffer overflow. Remote exploitation of the attack is possible. A high degree of complexity is needed for the attack. The
nvd
CVE-2017-2893P3HIGHCVSS 7.5v6.82017-11-07
CVE-2017-2893 [HIGH] CWE-476 CVE-2017-2893: An exploitable NULL pointer dereference vulnerability exists in the MQTT packet parsing functionalit
An exploitable NULL pointer dereference vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6.8. An MQTT SUBSCRIBE packet can cause a NULL pointer dereference leading to server crash and denial of service. An attacker needs to send a specially crafted MQTT packet over the network to trigger this vulnerability.
nvd
CVE-2017-2892P3CRITICALCVSS 9.8v6.82017-11-07
CVE-2017-2892 [CRITICAL] CWE-190 CVE-2017-2892: An exploitable arbitrary memory read vulnerability exists in the MQTT packet parsing functionality o
An exploitable arbitrary memory read vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6.8. A specially crafted MQTT packet can cause an arbitrary out-of-bounds memory read and write potentially resulting in information disclosure, denial of service and remote code execution. An attacker needs to send a specially craf
nvd
CVE-2026-5246P3HIGHCVSS 8.1≥ 7.0, < 7.21v7.0+20 more2026-04-02
CVE-2026-5246 [HIGH] CWE-285 CVE-2026-5246: A vulnerability was determined in Cesanta Mongoose up to 7.20. Affected is the function mg_tls_verif
A vulnerability was determined in Cesanta Mongoose up to 7.20. Affected is the function mg_tls_verify_cert_signature of the file mongoose.c of the component P-384 Public Key Handler. Executing a manipulation can lead to authorization bypass. The attack can be executed remotely. Attacks of this nature are highly complex. The exploitability is told to be
nvd
CVE-2017-2921P3CRITICALCVSS 9.8v6.82017-11-07
CVE-2017-2921 [CRITICAL] CWE-190 CVE-2017-2921: An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Ce
An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8. A specially crafted websocket packet can cause an integer overflow, leading to a heap buffer overflow and resulting in denial of service and potential remote code execution. An attacker needs to send a specially crafted websocket p
nvd
CVE-2018-20355P3CRITICALCVSS 9.8≤ 6.132019-06-10
CVE-2018-20355 [CRITICAL] CWE-416 CVE-2018-20355: An invalid write of 8 bytes due to a use-after-free vulnerability in the mg_http_free_proto_data_cgi
An invalid write of 8 bytes due to a use-after-free vulnerability in the mg_http_free_proto_data_cgi function call 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.
nvd
CVE-2018-20353P3CRITICALCVSS 9.8≤ 6.132019-06-10
CVE-2018-20353 [CRITICAL] CWE-416 CVE-2018-20353: An invalid read of 8 bytes due to a use-after-free vulnerability during a "NULL test" in the mg_http
An invalid read of 8 bytes due to a use-after-free vulnerability during a "NULL test" in the mg_http_get_proto_data 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.
nvd
CVE-2018-20356P3CRITICALCVSS 9.8≤ 6.132019-06-10
CVE-2018-20356 [CRITICAL] CWE-416 CVE-2018-20356: An invalid read of 8 bytes due to a use-after-free vulnerability in the mg_http_free_proto_data_cgi
An invalid read of 8 bytes due to a use-after-free vulnerability in the mg_http_free_proto_data_cgi function call 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.
nvd
CVE-2018-20354P3CRITICALCVSS 9.8≤ 6.132019-06-10
CVE-2018-20354 [CRITICAL] CWE-416 CVE-2018-20354: An invalid read of 8 bytes due to a use-after-free vulnerability during a "return" in the mg_http_ge
An invalid read of 8 bytes due to a use-after-free vulnerability during a "return" in the mg_http_get_proto_data 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.
nvd
CVE-2020-25756P3CRITICALCVSS 9.8v6.182020-09-18
CVE-2020-25756 [CRITICAL] CWE-120 CVE-2020-25756: A buffer overflow vulnerability exists in the mg_get_http_header function in Cesanta Mongoose 6.18 d
A buffer overflow vulnerability exists in the mg_get_http_header function in Cesanta Mongoose 6.18 due to a lack of bounds checking. A crafted HTTP header can exploit this bug. NOTE: a committer has stated "this will not happen in practice.
nvd
CVE-2018-18764P3CRITICALCVSS 9.1v6.132018-10-29
CVE-2018-18764 [CRITICAL] CWE-125 CVE-2018-18764: An exploitable arbitrary memory read vulnerability exists in the MQTT packet-parsing functionality o
An exploitable arbitrary memory read vulnerability exists in the MQTT packet-parsing functionality of Cesanta Mongoose 6.13. It is a heap-based buffer over-read in a parse_mqtt getu16 call. A specially crafted MQTT SUBSCRIBE packet can cause an arbitrary out-of-bounds memory read potentially resulting in information disclosure and denial of servic
nvd
CVE-2018-18765P3CRITICALCVSS 9.1v6.132018-10-29
CVE-2018-18765 [CRITICAL] CWE-125 CVE-2018-18765: An exploitable arbitrary memory read vulnerability exists in the MQTT packet-parsing functionality o
An exploitable arbitrary memory read vulnerability exists in the MQTT packet-parsing functionality of Cesanta Mongoose 6.13. It is a heap-based buffer over-read in mg_mqtt_next_subscribe_topic. A specially crafted MQTT SUBSCRIBE packet can cause an arbitrary out-of-bounds memory read potentially resulting in information disclosure and denial of se
nvd
1 / 3Next →