Mongoose Cesanta Mongoose

Don't miss out!

Thousands of developers use stack.watch to stay informed.
Get an email whenever new security vulnerabilities are reported in Cesanta Mongoose.

By the Year

In 2026 there have been 32 vulnerabilities in Cesanta Mongoose with an average score of 7.0 out of ten. Last year, in 2025 Mongoose had 1 security vulnerability published. That is, 31 more vulnerabilities have already been reported in 2026 as compared to last year. However, the average CVE base score of the vulnerabilities in 2026 is greater by 2.65.




Year Vulnerabilities Average Score
2026 32 6.95
2025 1 4.30
2024 11 5.90
2023 3 8.37
2022 1 7.50
2021 3 9.10
2020 1 9.80
2019 7 0.00
2018 4 6.50

It may take a day or so for new Mongoose vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.

Recent Cesanta Mongoose Security Vulnerabilities

Mongoose <7.22 OOB read in mg_mqtt_next_topic() MQTT broker tutorial
CVE-2026-141511 8.7 - High - December 01, 2026

Mongoose is an embedded web server and network library. Prior to 7.22, the Mongoose MQTT broker tutorial's mg_mqtt_next_topic() function can read two bytes beyond msg->dgram.len when a malformed MQTT SUBSCRIBE packet supplies a topic position that does not leave enough bytes for the topic-length field. Because tutorials/mqtt/mqtt-server/main.c reads that field without validating the complete two-byte access against the datagram boundary, an unauthenticated remote MQTT client can trigger invalid memory access and crash the broker. This issue is fixed in 7.22.

Out-of-bounds Read

Mongoose 7.23 HTTP Header Overflow Enables Request Smuggling (pre7.24)
CVE-2026-141510 5.9 - Medium - December 01, 2026

Mongoose is an embedded web server and network library. In 7.23, Mongoose's mg_http_parse_headers() in src/http.c can accept an HTTP/1 request after the fixed MG_MAX_HTTP_HEADERS table is exhausted and silently omit later framing headers such as Content-Length or Transfer-Encoding. A conforming frontend can treat bytes as the first request body while Mongoose treats the request as bodyless and parses those bytes as a second request, enabling request smuggling and bypass of a frontend path ACL when the frontend preserves the late framing header. Earlier releases may also be affected, but their status has not been established. This issue is fixed in 7.24.

HTTP Request Smuggling

Mongoose <7.24 TLS OOB read in mg_tls_server_recv_hello()
CVE-2026-141472 8.7 - High - December 01, 2026

Mongoose is an embedded web server and network library. Prior to 7.24, a remote unauthenticated TLS client can cause a heap out-of-bounds read in mg_tls_server_recv_hello() in src/tls_builtin.c and the generated mongoose.c when Mongoose uses MG_TLS_BUILTIN and a ClientHello extension block ends with fewer than four bytes. The parser reads the extension length before checking that the type and length header is complete, and related key-share length reads also lack minimum-structure validation, allowing a malformed handshake to terminate the worker or process. This issue is fixed in 7.24.

Out-of-bounds Read

Mongoose <=7.23 TLS Cert Verification Bypass via MG_TLS_BUILTIN
CVE-2026-141471 9.1 - Critical - December 01, 2026

Mongoose is an embedded web server and network library. From 7.17 until 7.24, Mongoose's MG_TLS_BUILTIN client in src/tls_builtin.c can accept an attacker-controlled server certificate chain when configured with a single DER CA certificate and processing a peer-provided chain, because mg_tls_verify_cert_signature() can return a negative issuer-key parsing result that callers negate as though verification succeeded. A crafted issuer with the trusted CA subject and public-key bytes but an unparseable RSA encoding can pair with an attacker-self-signed leaf that is not signed by the trusted CA, allowing a redirected client connection to complete a TLS 1.3 handshake and exchange application data without the trusted CA private key. This issue is fixed in 7.24.

Improper Certificate Validation

Mongoose 7.21-7.23 TCP/IP stack NULL ptr deref in getpeer() IPv6
CVE-2026-141470 8.2 - High - December 01, 2026

Mongoose is an embedded web server and network library. From 7.21 until 7.24, Mongoose's built-in TCP/IP stack with MG_ENABLE_TCPIP and MG_ENABLE_IPV6 enabled can dereference a null IPv4 header in getpeer() in src/net_builtin.c when rx_tcp() receives an IPv6/TCP packet whose source and destination ports match an established IPv4 connection. The cross-family lookup reaches pkt->ip->src even though only pkt->ip6 is present, allowing a network attacker able to deliver IPv6 packets to crash the process or networking task. This issue is fixed in 7.24.

NULL Pointer Dereference

Cesanta Mongoose 7.22<7.24 OOB read in TLS mg_timegm() DoS
CVE-2026-134170 8.2 - High - November 20, 2026

Cesanta Mongoose 7.22 before 7.24 with the built-in TLS stack contains an out-of-bounds read in mg_timegm() that allows remote attackers to crash the process via crafted X.509 certificate validity months. Attackers can present a certificate with month '00' or out-of-range values during the handshake, before signature verification, causing an unchecked dm array index and denial of service.

out-of-bounds array index

Cesanta Mongoose <7.24 OOB read in IPv6 checksum validation
CVE-2026-134171 6.9 - Medium - November 20, 2026

Cesanta Mongoose 7.21 before 7.24 contains an out-of-bounds read vulnerability in rx_ip6() checksum validation that allows remote unauthenticated attackers to read past received packets by sending IPv6 extension headers. Attackers can send a single IPv6 TCP or ICMPv6 packet with extension headers, causing tcp6csum_ok() and icmp6csum_ok() to use the full payload length and read adjacent receive-buffer memory.

length manipulation

Mongoose Embedded Server <7.24 WS FIN opcode spoofing
CVE-2026-106024 6.9 - Medium - November 20, 2026

Mongoose Embedded Web Server / Networking Library before 7.24 contains a WebSocket fragmentation validation vulnerability that allows remote attackers to spoof message metadata by sending a single CONTINUATION frame with FIN=1 as the first data frame instead of a required TEXT/BINARY start frame, violating RFC 6455 sequencing rules. Attackers can craft this malformed frame to make mg_ws_cb() in src/ws.c misinterpret the first byte of payload as saved FIN/opcode flags, causing the application to receive a dispatched MG_EV_WS_MSG event with attacker-controlled flags and data truncated by one byte without closing the connection.

Improper Enforcement of Behavioral Workflow

Mongoose <=7.21 Heap OOB Read in mg_path_is_sane (embedded web server)
CVE-2026-115473 6.5 - Medium - November 04, 2026

Mongoose is an embedded web server and network library. Prior to 7.22, mg_path_is_sane in src/util.c read path.buf[1] without first requiring path.len to be at least two and read s[2] when only two bytes remained. Unauthenticated remote requests reaching mg_http_upload or mg_http_serve_dir with the affected short path shapes could therefore trigger one-byte heap out-of-bounds reads. On bare-metal or RTOS targets without memory protection, the adjacent byte could be exposed or influence whether a path was accepted, and instrumented builds could crash. This issue is fixed in version 7.22.

Out-of-bounds Read

Mongoose 7.22 IPv6CP Len Bypass in ppp_handle_ipv6cp (CVE-2026-63626)
CVE-2026-63626 8.8 - High - October 14, 2026

Mongoose is an embedded web server and network library. Prior to 7.23, ppp_handle_ipv6cp() in src/l2_ppp.c trusts the 16-bit IPv6CP len field without checking it against the received payload size. On a PPP or PPPoE link using MG_ENABLE_TCPIP and MG_ENABLE_IPV6, an unauthenticated adjacent peer can complete the required LCP exchange and send a short Configure-Request with an oversized length, causing ppp_tx_frame() to read beyond recv_queue.buf and write beyond tx.buf. The same length misuse can also expose adjacent heap bytes in a reply or hang the event loop through find_opt(). This issue is fixed in version 7.23.

Heap-based Buffer Overflow

Mongoose 7.23 TCP MSS Option Length Overflow in Network Stack
CVE-2026-73261 7.5 - High - October 14, 2026

Mongoose is an embedded web server and network library. Prior to 7.23, the built-in TCP/IP stack enabled by MG_ENABLE_TCPIP in src/net_builtin.c does not reject a TCP option whose declared opts[1] length exceeds the remaining option bytes. In handle_opt(), a NOP followed by a truncated MSS option causes opts[3] to be read outside the declared options area and used as the low byte of dmss. An unauthenticated remote peer can corrupt the per-connection MSS value so later mg_send() calls transmit truncated or zero-length application payloads while the TCP connection otherwise appears healthy. This issue is fixed in version 7.23.

Improper Input Validation

Mongoose 7.x TLS Cert Parser OOB Read (Der Length) fixed 7.23
CVE-2026-73260 7.5 - High - October 14, 2026

Mongoose is an embedded web server and network library. Prior to 7.23, the built-in TLS certificate parser selected by MG_TLS_BUILTIN fails to verify that a long-form DER element length fits within the remaining certificate buffer. In mg_der_to_tlv() and mg_der_next(), a peer-controlled length can advance the parser beyond the certificate and underflow the remaining uint32_t length, causing mg_tls_parse_cert_der() to continue walking an invalid pointer. An unauthenticated malicious TLS server, or a client presenting a certificate to a server configured for client certificates, can trigger an out-of-bounds read and denial of service during the handshake. This issue is fixed in version 7.23.

Out-of-bounds Read

Mongoose TLS 1.3 OOB Read RSoD Pre-7.23
CVE-2026-73252 7.5 - High - October 14, 2026

Mongoose is an embedded web server and network library. Prior to 7.23, the built-in TLS stack selected by MG_TLS_BUILTIN in src/tls_builtin.c accepts a TLS 1.3 record whose decrypted size is exactly the 16-byte authentication tag with no plaintext or ContentType byte. In mg_tls_recv_record(), the msgsz length check permits that record and the recv_len calculation underflows to SIZE_MAX, so a later handshake step treats stale buffer contents as a trusted message with an effectively unbounded length. An unauthenticated malicious TLS peer can trigger a heap out-of-bounds read before certificate or Finished validation, causing a remote denial of service. This issue is fixed in version 7.23.

Integer underflow

Cesanta Mongoose 7.21 MQTT Broker stack buffer overflow (CVE-2026-101003)
CVE-2026-101003 6.9 - Medium - September 28, 2026

A weakness has been identified in Cesanta Mongoose up to 7.21. Affected by this vulnerability is the function fn of the file tutorials/mqtt/mqtt-server/main.c of the component MQTT Broker. Executing a manipulation can lead to stack-based buffer overflow. The attack can be launched remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 7.22 addresses this issue. This patch is called a9df523f76f43a38bd53b4232b9cfd4c16869e71. Upgrading the affected component is advised.

Stack Overflow

Mongoose TLS Hostname Verification Bypass Before 7.22
CVE-2026-73253 9.1 - Critical - August 20, 2026

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 wildcard can cross DNS label boundaries, so a pattern such as *.example.com can match foo.bar.example.com. The resulting hostname verification bypass permits interception and modification of TLS traffic. This issue is fixed in version 7.22.

Improper Certificate Validation

Mongoose <7.22 Directory Traversal via SSI #include
CVE-2026-73255 6.5 - Medium - August 20, 2026

Mongoose is an embedded web server and network library. Prior to 7.22, an attacker who can control an SSI-enabled file can place directory traversal sequences in an #include file or #include virtual directive. The mg_ssi() function in src/ssi.c concatenates the directive argument into a filesystem path without calling mg_path_is_sane(), allowing an MG_ENABLE_SSI deployment with ssi_pattern configured to disclose files readable by the Mongoose process. This issue is fixed in version 7.22.

Directory traversal

Mongoose <7.22 Reflected XSS via mg_http_serve_dir
CVE-2026-73259 5.4 - Medium - August 20, 2026

Mongoose is an embedded web server and network library. Prior to 7.22, a remote attacker can send a crafted percent-encoded request path to a deployment using MG_ENABLE_DIRLIST and persuade a user to visit it. The mg_http_serve_dir() and listdir() path in src/http.c places the decoded request URI into the title and h1 elements without HTML entity encoding. The resulting reflected cross-site scripting executes in the Mongoose origin and can expose session data or perform actions as the victim. This issue is fixed in version 7.22.

XSS

Mongoose <7.22 HTTP/1.0 Reverse-Proxy Chunked Request Smuggling
CVE-2026-73256 9.1 - Critical - August 20, 2026

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 mg_http_parse() requires an eight-byte protocol string, so is_http_1_0 is never set. Mongoose consequently processes chunked encoding that an HTTP/1.0 proxy can ignore, enabling request smuggling and unauthorized access or state changes. This issue is fixed in version 7.22.

HTTP Request Smuggling

Stored XSS in Mongoose <7.22 via printdirentry Directory Listing
CVE-2026-73254 5.4 - Medium - August 20, 2026

Mongoose is an embedded web server and network library. Prior to 7.22, an attacker who can create a file with an HTML payload in its name can trigger stored cross-site scripting when a user browses a directory served with MG_ENABLE_DIRLIST. The printdirentry() path called by listdir() in src/http.c URL-encodes the href but inserts the raw filesystem filename into the HTML link text. The browser executes the injected markup in the Mongoose origin, which can expose session data or permit actions as the victim. This issue is fixed in version 7.22.

XSS

Mongoose 7.21 CRLF Injection via mg_http_next_multipart() Headers Truncation
CVE-2026-73258 6.5 - Medium - August 20, 2026

Mongoose is an embedded web server and network library. Prior to 7.22, a remote attacker can place a lone carriage return or line feed in multipart input processed by mg_http_next_multipart() in src/http.c. The loops comparing s[b] and s[b + 1], and s[h2] and s[h2 + 1], use an incorrect AND condition and stop when either character resembles part of a CRLF terminator. This truncates headers, filenames, or boundaries and can cause an application to accept dangerous content after seeing a misleading Content-Type value. This issue is fixed in version 7.22.

Incorrect Comparison

Mongoose <7.23 TLS server impersonation via CA bundle bug
CVE-2026-73251 9.3 - Critical - August 20, 2026

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_bundle_find() to accept a Common Name match without calling mg_tls_verify_cert_signature(). A forged self-signed certificate can therefore satisfy hostname and CertificateVerify checks and enable interception, credential disclosure, traffic modification, and malicious responses. This issue is fixed in version 7.23.

Improper Certificate Validation

Mongoose <7.22: HTTP CL.TE Desync Allows Remote Context Hijack
CVE-2026-73257 9.1 - Critical - August 20, 2026

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 a Content-Length-preferring reverse proxy can use a different request boundary. This CL.TE desynchronization can inject requests that access or modify resources in another user context. This issue is fixed in version 7.22.

HTTP Request Smuggling

Cesanta Mongoose7.21 OOB Read in mg_tls via ClientHello
CVE-2026-11404 8.7 - High - July 09, 2026

Cesanta Mongoose before 7.22 contains an out-of-bounds read in the built-in TLS server function mg_tls_server_recv_hello(), which uses an attacker-controlled session_id_len byte from a TLS ClientHello as a buffer index without validating it against the length of received data. A remote, unauthenticated attacker can send a single crafted ClientHello with an oversized session id length to read past the receive buffer, crashing any HTTPS, MQTTS, or WSS service built on MG_TLS_BUILTIN.

Out-of-bounds Read

Cesanta Mongoose <7.21: GCM Auth Tag Verification Failure
CVE-2026-6986 3.7 - Low - April 25, 2026

A security vulnerability has been detected in Cesanta Mongoose up to 7.20. This issue affects the function mg_aes_gcm_decrypt of the file /src/tls_aes128.c of the component GCM Authentication Tag Handler. Such manipulation leads to improper verification of cryptographic signature. The attack may be performed from remote. A high complexity level is associated with this attack. The exploitability is assessed as difficult. The exploit has been disclosed publicly and may be used. Upgrading to version 7.21 is capable of addressing this issue. It is advisable to upgrade the affected component. VulDB has contacted the vendor early and they confirmed quickly, that this issue got fixed already.

Improper Verification of Cryptographic Signature

Cesanta Mongoose 7.20 TCP Option Handler Infinite Loop
CVE-2026-6985 5.3 - Medium - April 25, 2026

A weakness has been identified in Cesanta Mongoose up to 7.20. This vulnerability affects the function handle_opt of the file /src/net_builtin.c of the component TCP Option Handler. This manipulation of the argument optlen causes infinite loop. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 7.21 is able to resolve this issue. Upgrading the affected component is advised. VulDB has contacted the vendor early and they confirmed quickly, that this issue got fixed already.

Infinite Loop

Cesanta Mongoose <=7.20: P-384 PUB KEY handler RCE, auth bypass
CVE-2026-5246 5.6 - Medium - April 02, 2026

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 difficult. The exploit has been publicly disclosed and may be utilized. Upgrading to version 7.21 is able to address this issue. This patch is called 0d882f1b43ff2308b7486a56a9d60cd6dba8a3f1. The affected component should be upgraded. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

Insecure Direct Object Reference / IDOR

Cesanta Mongoose 7.20 mDNS Record Buffer Overflow (stack-based)
CVE-2026-5245 5.6 - Medium - April 02, 2026

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 exploitability is said to be difficult. The exploit has been made public and could be used. Upgrading to version 7.21 will fix this issue. The patch is named 0d882f1b43ff2308b7486a56a9d60cd6dba8a3f1. You should upgrade the affected component. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

Stack Overflow

Cesanta Mongoose TLS 1.3 Handler Heap Overflow before 7.20 (Fixed in 7.21)
CVE-2026-5244 7.3 - High - April 02, 2026

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 to version 7.21 mitigates this issue. The name of the patch is 0d882f1b43ff2308b7486a56a9d60cd6dba8a3f1. It is advisable to upgrade the affected component. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

Heap-based Buffer Overflow

Mongoose Web Server 6.9 DoS via Multiple Socket Connections
CVE-2018-25193 7.5 - High - March 06, 2026

Mongoose Web Server 6.9 contains a denial of service vulnerability that allows remote attackers to crash the service by establishing multiple socket connections. Attackers can repeatedly create connections to the default port and send malformed data to exhaust server resources and cause service unavailability.

Insecure Default Initialization of Resource

Cesanta Mongoose <=7.20 Poly1305 Tag Handler Signature Verification Bypass
CVE-2026-2968 3.7 - Low - February 23, 2026

A vulnerability was detected in Cesanta Mongoose up to 7.20. This impacts the function mg_chacha20_poly1305_decrypt of the file /src/tls_chacha20.c of the component Poly1305 Authentication Tag Handler. The manipulation results in improper verification of cryptographic signature. The attack may be launched remotely. This attack is characterized by high complexity. The exploitability is said to be difficult. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Improper Verification of Cryptographic Signature

Cesanta Mongoose <=7.20 TCPSN Handler Getpeer Remote Sequence Num Bypass
CVE-2026-2967 3.7 - Low - February 23, 2026

A security vulnerability has been detected in Cesanta Mongoose up to 7.20. This affects the function getpeer of the file /src/net_builtin.c of the component TCP Sequence Number Handler. The manipulation leads to improper verification of source of a communication channel. The attack may be initiated remotely. The attack's complexity is rated as high. The exploitability is reported as difficult. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Improper Verification of Source of a Communication Channel

Cesanta Mongoose7.20 DNS Txn ID Handler Randomness Weakness
CVE-2026-2966 3.7 - Low - February 23, 2026

A weakness has been identified in Cesanta Mongoose up to 7.20. The impacted element is the function mg_sendnsreq of the file /src/dns.c of the component DNS Transaction ID Handler. Executing a manipulation of the argument random can lead to insufficiently random values. The attack can be launched remotely. The attack requires a high level of complexity. The exploitability is regarded as difficult. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.

Use of Insufficiently Random Values

Cesanta Mongoose <7.2 NOPTRD in add_ca_certs() TLS DoS
CVE-2025-65502 4.3 - Medium - November 24, 2025

Null pointer dereference in add_ca_certs() in Cesanta Mongoose before 7.2 allows remote attackers to cause a denial of service via TLS initialization where SSL_CTX_get_cert_store() returns NULL.

NULL Pointer Dereference

Cesanta Mongoose Web Server v7.14 TLS Packet Handling Integer Overflow Vulnerability
CVE-2024-42384 7.5 - High - November 18, 2024

Integer Overflow or Wraparound vulnerability in Cesanta Mongoose Web Server v7.14 allows an attacker to send an unexpected TLS packet and produce a segmentation fault on the application.

Integer Overflow or Wraparound

Cesanta Mongoose Web Server: Out-of-range Pointer Offset Vulnerability
CVE-2024-42383 9.8 - Critical - November 18, 2024

Use of Out-of-range Pointer Offset vulnerability in Cesanta Mongoose Web Server v7.14 allows to write a NULL byte value beyond the memory space dedicated for the hostname field.

Untrusted pointer offset

Cesanta Mongoose Web Server: Improper Neutralization of Delimiters Leading to Out-of-Bounds Memory W
CVE-2024-42385 4 - Medium - November 18, 2024

Improper Neutralization of Delimiters vulnerability in Cesanta Mongoose Web Server v7.14 allows to trigger an out-of-bound memory write if the PEM certificate contains unexpected characters.

Improper Neutralization of Delimiters

Cesanta Mongoose Web Server: Use of Out-of-range Pointer Offset in TLS Handling
CVE-2024-42386 8.2 - High - November 18, 2024

Use of Out-of-range Pointer Offset vulnerability in Cesanta Mongoose Web Server v7.14 allows an attacker to send an unexpected TLS packet and produce a segmentation fault on the application.

Untrusted pointer offset

Cesanta Mongoose Web Server: Use of Out-of-range Pointer Offset Vulnerability
CVE-2024-42387 5.3 - Medium - November 18, 2024

Use of Out-of-range Pointer Offset vulnerability in Cesanta Mongoose Web Server v7.14 allows an attacker to send an unexpected TLS packet and force the application to read unintended heap memory space.

Untrusted pointer offset

Cesanta Mongoose Web Server: Out-of-range Pointer Offset Vulnerability in TLS Handling
CVE-2024-42388 5.3 - Medium - November 18, 2024

Use of Out-of-range Pointer Offset vulnerability in Cesanta Mongoose Web Server v7.14 allows an attacker to send an unexpected TLS packet and force the application to read unintended heap memory space.

Untrusted pointer offset

Cesanta Mongoose Web Server: Use of Out-of-range Pointer Offset Vulnerability
CVE-2024-42389 5.3 - Medium - November 18, 2024

Use of Out-of-range Pointer Offset vulnerability in Cesanta Mongoose Web Server v7.14 allows an attacker to send an unexpected TLS packet and force the application to read unintended heap memory space.

Untrusted pointer offset

Cesanta Mongoose Web Server: Out-of-range Pointer Offset Vulnerability in TLS Handling
CVE-2024-42390 5.3 - Medium - November 18, 2024

Use of Out-of-range Pointer Offset vulnerability in Cesanta Mongoose Web Server v7.14 allows an attacker to send an unexpected TLS packet and force the application to read unintended heap memory space.

Untrusted pointer offset

Cesanta Mongoose Web Server: Out-of-range Pointer Offset Vulnerability in TLS Handling
CVE-2024-42391 4.3 - Medium - November 18, 2024

Use of Out-of-range Pointer Offset vulnerability in Cesanta Mongoose Web Server v7.14 allows an attacker to send an unexpected TLS packet and force the application to read unintended heap memory space.

Untrusted pointer offset

Cesanta Mongoose Web Server: Improper Neutralization of Delimiters Leading to Infinite Loop
CVE-2024-42392 4 - Medium - November 18, 2024

Improper Neutralization of Delimiters vulnerability in Cesanta Mongoose Web Server v7.14 allows to trigger an infinite loop bug if the input string contains unexpected characters.

Improper Neutralization of Delimiters

Cesanta Mongoose MQTT Null Pointer Deref in scpy (DoS)
CVE-2024-35492 - May 29, 2024

Cesanta Mongoose commit b316989 was discovered to contain a NULL pointer dereference via the scpy function at src/fmt.c. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted MQTT packet.

BUFOVF in Mongoose 6.18 mg_resolve_from_hosts_file
CVE-2020-25887 8.8 - High - August 22, 2023

Buffer overflow in mg_resolve_from_hosts_file in Mongoose 6.18, when reading from a crafted hosts file.

Classic Buffer Overflow

Cesanta Mongoose 7.10 Heap Overflow via MQTT Publish Header
CVE-2023-2905 8.8 - High - August 09, 2023

Due to a failure in validating the length of a provided MQTT_CMD_PUBLISH parsed message with a variable length header, Cesanta Mongoose, an embeddable web server, version 7.10 is susceptible to a heap-based buffer overflow vulnerability in the default configuration. Version 7.9 and prior does not appear to be vulnerable. This issue is resolved in version 7.11.

Memory Corruption

Mongoose <7.10 HTTP Server Nega Content-Length Infinite Loop DDoS
CVE-2023-34188 7.5 - High - June 23, 2023

The HTTP server in Mongoose before 7.10 accepts requests containing negative Content-Length headers. By sending a single attack payload over TCP, an attacker can cause an infinite loop in which the server continuously reparses that payload, and does not respond to any other requests.

This affects the package cesanta/mongoose before 7.6
CVE-2022-25299 7.5 - High - February 18, 2022

This affects the package cesanta/mongoose before 7.6. The unsafe handling of file names during upload using mg_http_upload() method may enable attackers to write files to arbitrary locations outside the designated target folder.

Files or Directories Accessible to External Parties

The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 (compiled with OpenSSL support) is vulnerable to remote OOB write attack
CVE-2021-26530 9.1 - Critical - February 08, 2021

The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 (compiled with OpenSSL support) is vulnerable to remote OOB write attack via connection request after exhausting memory pool.

Memory Corruption

The mg_http_serve_file function in Cesanta Mongoose HTTP server 7.0 is vulnerable to remote OOB write attack
CVE-2021-26528 9.1 - Critical - February 08, 2021

The mg_http_serve_file function in Cesanta Mongoose HTTP server 7.0 is vulnerable to remote OOB write attack via connection request after exhausting memory pool.

Memory Corruption

Stay on top of Security Vulnerabilities

Want an email whenever new vulnerabilities are published for Cesanta Mongoose or by Cesanta? Click the Watch button to subscribe.

Cesanta
Vendor

subscribe