Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft TCP packet with malformed option length
-
DeliverySend to Mongoose listening port
-
ExploitTrigger handle_opt parser
-
ExecutionParser enters infinite loop
-
PersistService becomes unresponsive
-
ImpactDeny legitimate requests
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerability is triggered by remote delivery of a specially crafted TCP packet with a manipulated optlen value in the TCP option header during the connection establishment phase. No special authentication, user interaction, or non-default configuration is required; default Mongoose instances listening on network interfaces are vulnerable. The attack succeeds against any Mongoose deployment version 7.20 or earlier that exposes TCP services to untrusted networks. Limitations on exploitation: (1) the infinite loop is bound by TCP connection timeout mechanisms (typically 30-120 seconds depending on OS configuration), after which the connection is torn down and CPU is released; (2) modern systems with process resource limits or container orchestration may automatically restart crashed/hung services, limiting sustained impact; (3) intrusion detection systems or network firewalls with deep packet inspection may detect and filter malformed TCP options, though this depends on deployment posture. |
| Impact | CVSS score of 5.3 with AV:N/AC:L/PR:N/UI:N reflects a network-accessible denial of service with no special privileges or user interaction required, but limited impact (availability only; no confidentiality or integrity loss). The CVSS vector includes E:P (Proof of Concept available) and RL:O (Official Fix available), strengthening evidence of real-world exploitability. However, CVSS base score of 5.3 falls below critical thresholds; the real-world risk depends on deployment context: embedded systems with limited redundancy face higher operational impact than cloud-hosted instances with auto-scaling. No EPSS or CVSS temporal/environmental modifiers provided, but the combination of network-accessible DoS plus public POC warrants prioritized patching in externally-facing deployments. The infinite loop is automatable and requires no user interaction, making it a straightforward target for vulnerability scanning and exploitation by both opportunistic and targeted attackers. |
| Exploit ScenarioDerived | An attacker crafts a TCP SYN packet with a malformed TCP option header where the optlen parameter is set to a value that causes the handle_opt parser to loop indefinitely. The attacker sends this packet to the Mongoose server's listening port from any network-accessible location without authentication. The server consumes CPU in the infinite loop, becoming unresponsive to legitimate requests until the connection times out or manual intervention restarts the process. Repeated attacks amplify the denial of service across multiple connections. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 25, 2026
Remote denial of service in Cesanta Mongoose up to version 7.20 allows unauthenticated attackers to trigger an infinite loop via manipulation of TCP option length parameters in the handle_opt function, causing service unavailability. Publicly available exploit code exists. Patch released in version 7.21.
RemediationAI
Immediately upgrade Cesanta Mongoose to version 7.21 or later. For deployments unable to upgrade immediately, implement network-level mitigations: configure firewalls or load balancers to rate-limit or filter TCP connections with malformed options (if inspection tooling is available), or restrict TCP option processing to trusted sources using IP allowlists. Note that these mitigations do not eliminate the vulnerability and impose operational overhead; they are temporary measures only. The preferred and complete remediation is immediate upgrade to the patched release. Verify the upgrade by checking the library version reported by your Mongoose instance and testing with the public POC available at https://github.com/dwBruijn/CVEs/blob/main/Mongoose/TCP_opt_dos.md to confirm the infinite loop condition no longer occurs.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Cesanta Mongoose is an embedded web server and networking library commonly integrated into IoT devices and embedded systems. The vulnerability resides in the TCP option handler (/src/net_builtin.c), specifically the handle_opt function responsible for parsing TCP options during the three-way handshake. CWE-835 identifies an infinite loop as the root cause class, typically resulting from improper bounds checking or conditional logic in option length validation. The TCP option parsing mechanism processes optional fields appended to TCP headers; malformed or specially crafted optlen values bypass validation logic, causing the parser to enter an uncontrollable loop consuming CPU resources until the connection times out or the process is killed.
Know when Mongoose gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Mongoose ODM for Node.js before version 8.9.5 contains a search injection vulnerability when using $where filters with p
An exploitable stack buffer overflow vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6
An exploitable use-after-free vulnerability exists in the HTTP server implementation of Cesanta Mongoose 6.8. Rated crit
An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.
An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.
Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.4. Rated critical severity (CVSS 9.8), this vu
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6. Rated critical severity (CVSS 9.8), this vu
An integer overflow in parse_mqtt in mongoose.c in Cesanta Mongoose 6.16 allows an attacker to achieve remote DoS (infin
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection. Rated critical severity (CVSS 9.1
The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 (compiled with OpenSSL support) is vulnerable to remote OO
The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 and 6.7-6.18 (compiled with mbedTLS support) is vulnerable
The mg_http_serve_file function in Cesanta Mongoose HTTP server 7.0 is vulnerable to remote OOB write attack via connect
EUVD-2026-25661
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB