SB20261120259 - Multiple vulnerabilities in Mongoose



SB20261120259 - Multiple vulnerabilities in Mongoose

Published: November 20, 2026

Security Bulletin ID SB20261120259
CSH Severity
High
Patch available
YES
Number of vulnerabilities 13
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 15% Medium 77% Low 8%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 13 vulnerabilities.


1) Inconsistent interpretation of HTTP requests (CVE-ID: N/A)

CWE-ID: CWE-444 - Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass frontend access controls and trigger protected state-changing actions through HTTP request smuggling.

The vulnerability exists due to silent truncation of request headers in Mongoose's HTTP/1 parser when the fixed-size header table fills, causing the parser to ignore request framing headers. A remote attacker can exploit disagreement between a frontend proxy and Mongoose about where a request ends to trigger an action that the proxy would block if requested directly.


2) Out-of-bounds read (CVE-ID: N/A)

CWE-ID: CWE-125 - Out-of-bounds read

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to disclose memory contents on 32-bit systems or crash the process on 64-bit systems.

The vulnerability exists due to an out-of-bounds read in mg_timegm when Mongoose's built-in TLS stack converts a certificate timestamp without checking the month before indexing a lookup table. A remote attacker can present a certificate with a malformed timestamp during the TLS handshake to expose memory contents through certificate validation outcomes or cause a denial of service.


3) Numeric Truncation Error (CVE-ID: N/A)

CWE-ID: CWE-197 - Numeric Truncation Error

CVSSv4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to inject arbitrary WebSocket messages before authentication and potentially bypass application authentication to gain unauthorized access to protected data or controls.

The vulnerability exists due to numeric truncation in the WebSocket frame parser when it converts a 64-bit payload length to a 32-bit value before checking the length limit. A remote attacker can send malformed WebSocket traffic to desynchronize the parser and cause the application to accept injected messages as legitimate.


4) Out-of-bounds read (CVE-ID: N/A)

CWE-ID: CWE-125 - Out-of-bounds read

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to potentially disclose sensitive information from memory.

The vulnerability exists due to an out-of-bounds read in Mongoose's built-in TCP and ICMPv6 checksum validation when the checksum length exceeds the remaining packet data. A remote attacker can send malformed IPv6 traffic to trigger a checksum calculation that may expose adjacent memory.


5) Use of Out-of-range Pointer Offset (CVE-ID: N/A)

CWE-ID: CWE-823 - Use of Out-of-range Pointer Offset

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing the Mongoose process.

The vulnerability exists due to the use of an out-of-range pointer offset in mg_tls_verify_cert_signature() when parsing X.509 ECDSA signatures without checking the encoded lengths against the signature buffer bounds. A remote attacker can present a malformed peer certificate during a handshake with a Mongoose endpoint configured to verify peer certificates using built-in TLS to trigger an out-of-bounds read and crash the process before certificate trust is established.


6) Improper Enforcement of a Single, Unique Action (CVE-ID: N/A)

CWE-ID: CWE-837 - Improper Enforcement of a Single, Unique Action

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to poison an intermediary's HTTP cache and potentially expose HTTP data when the intermediary misinterprets WebSocket traffic.

The vulnerability exists due to improper enforcement of RFC 6455 masking rules in the Mongoose WebSocket server, which accepts unmasked client frames instead of closing the connection. A remote attacker can bypass the masking safeguard to cause a nonconformant caching proxy to misinterpret WebSocket traffic as HTTP.


7) Improper Enforcement of Behavioral Workflow (CVE-ID: CVE-2026-106024)

CWE-ID: CWE-841 - Improper Enforcement of Behavioral Workflow

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to control the flags of a WebSocket message delivered to the application and cause its payload to lose the first byte.

The vulnerability exists due to improper sequencing validation in the mg_ws_cb() function when reassembling WebSocket messages without tracking whether a fragmented message is in progress. A remote attacker can send out-of-sequence WebSocket traffic to mislead applications that rely on message flags to identify message types.


8) Heap-based buffer overflow (CVE-ID: N/A)

CWE-ID: CWE-122 - Heap-based Buffer Overflow

CVSSv4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to a heap-based buffer overflow in the Mongoose MIP TCP/IP stack's read_conn() function when it copies incoming data during TCP connection termination without checking the receive buffer's remaining capacity. A remote attacker can send crafted TCP traffic to corrupt heap memory and execute arbitrary code.


9) Out-of-bounds read (CVE-ID: N/A)

CWE-ID: CWE-125 - Out-of-bounds read

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing a Mongoose application that uses the built-in TLS backend.

The vulnerability exists due to a heap out-of-bounds read in mg_tls_server_recv_hello() when the built-in TLS parser reads extension header or nested key-share lengths without first checking that the corresponding structure is complete. A remote attacker can send a malformed TLS ClientHello before authentication to cause a denial of service.


10) Improper Certificate Validation (CVE-ID: N/A)

CWE-ID: CWE-295 - Improper Certificate Validation

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to impersonate a trusted TLS server, receive application requests, and send attacker-controlled responses.

The vulnerability exists due to improper certificate validation in the Mongoose built-in TLS client when it treats an issuer-signature verification error as success while checking a server certificate chain against a single configured CA certificate. A remote attacker can present a crafted certificate chain over an outbound TLS connection they control or redirect to bypass server authentication and exchange application data with the client.


11) NULL pointer dereference (CVE-ID: N/A)

CWE-ID: CWE-476 - NULL Pointer Dereference

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by crashing the Mongoose process.

The vulnerability exists due to a null pointer dereference in the built-in TCP/IP stack's getpeer() function when an IPv4 connection lookup assumes an IPv4 header is present while processing IPv6 traffic. A remote attacker can send IPv6 TCP traffic to a device with the built-in stack and IPv6 enabled to trigger the crash.


12) Improper validation of certificate with host mismatch (CVE-ID: N/A)

CWE-ID: CWE-297 - Improper Validation of Certificate with Host Mismatch

CVSSv4: 9.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to impersonate a TLS server identified by an IP address and potentially read or alter application traffic.

The vulnerability exists due to improper certificate identity validation in Mongoose's built-in TLS client when it falls back to the subject common name after an IP subject alternative name mismatch. A remote attacker can present a certificate issued by a certificate authority the client trusts to impersonate an IP endpoint the certificate is not authorized to represent.


13) Improper Neutralization of Null Byte or NUL Character (CVE-ID: N/A)

CWE-ID: CWE-158 - Improper Neutralization of Null Byte or NUL Character

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to read files protected by application-level URI authorization.

The vulnerability exists due to improper handling of decoded null bytes in mg_http_serve_dir when mapping request URIs to filesystem paths. A remote attacker can request a protected file using a URI that the application's authorization check and the file server interpret differently to bypass the access rule.


Remediation

Install update from vendor's website.