Cesanta Mongoose vulnerabilities
64 known vulnerabilities affecting cesanta/mongoose.
Total CVEs
64
CISA KEV
0
Public exploits
2
Exploited in wild
1
Severity breakdown
CRITICAL27HIGH21MEDIUM12LOW4
Vulnerabilities
Page 1 of 4
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-73257P2CRITICALCVSS 9.1fixed in 7.222026-08-20
CVE-2026-73257 [CRITICAL] CWE-444 CVE-2026-73257: Mongoose is an embedded web server and network library. Priro to version 7.22, a remote unauthentica
Mongoose is an embedded web server and network library. Priro to version 7.22, a remote unauthenticated attacker can send an HTTP request containing both Content-Length and Transfer-Encoding: chunked. The cl_count and te_count checks in the mg_http_parse() and http_cb() paths in src/http.c accept both headers and prioritize chunked encoding, while
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-2026-73256P2CRITICALCVSS 9.1fixed in 7.222026-08-20
CVE-2026-73256 [CRITICAL] CWE-444 CVE-2026-73256: Mongoose is an embedded web server and network library. Prior to 7.22, a remote unauthenticated atta
Mongoose is an embedded web server and network library. Prior to 7.22, a remote unauthenticated attacker can exploit an HTTP/1.0 reverse-proxy deployment by sending a request with Transfer-Encoding: chunked and conflicting framing. The http_cb() function in src/http.c tests hm.proto.len with an impossible greater-than-eight condition even though m
nvd
CVE-2026-73253P3CRITICALCVSS 9.1fixed in 7.222026-08-20
CVE-2026-73253 [CRITICAL] CWE-295 CVE-2026-73253: Mongoose is an embedded web server and network library. Prior to version 7.22, an on-path network at
Mongoose is an embedded web server and network library. Prior to version 7.22, an on-path network attacker with a wildcard certificate for a parent domain can impersonate deeper subdomains to a client using the built-in TLS stack. The mg_tls_verify_cert_san() and mg_tls_verify_cert_cn() functions in src/tls_builtin.c call mg_match(), whose wildcar
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-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-73251P3CRITICALCVSS 9.1fixed in 7.232026-08-20
CVE-2026-73251 [CRITICAL] CWE-295 CVE-2026-73251: Mongoose is an embedded web server and network library. Prior to 7.23, a network attacker can impers
Mongoose is an embedded web server and network library. Prior to 7.23, a network attacker can impersonate a TLS server to a Mongoose client configured with a multi-certificate CA bundle. In src/tls_builtin.c, the mg_tls_init() function stores the bundle in tls->ca_bundle_der while tls->ca_der.len remains zero, and mg_tls_recv_cert() uses tls_bundl
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-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-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-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-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
1 / 4Next →