What’s Vulnerable › Vulnerabilities
CVE-2026-6985: Cesanta Mongoose TCP Option net_builtin.c handle_opt infinite loop
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-04-25 · updated 2026-10-26
- Weakness: CWE-404
Description
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.
Affected products
- Cesanta Mongoose: from 7.0 before 7.21 — fixed in 7.21
How to fix
Upgrade to a fixed version: Cesanta Mongoose 7.21. Check the vendor advisory for mitigations.
References
- https://github.com/cesanta/mongoose/releases/tag/7.21
- https://github.com/dwBruijn/CVEs/blob/main/Mongoose/TCP_opt_dos.md
- https://vuldb.com/submit/796230
- https://vuldb.com/vuln/359528
- https://vuldb.com/vuln/359528/cti
Get alerted when CVE-2026-6985 or the next vulnerability affects your stack