# CVE-2026-6985: Cesanta Mongoose TCP Option net_builtin.c handle_opt infinite loop

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-25T16:15:13.639Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-404, CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- Cesanta Mongoose: 7.0; 7.1; 7.2; 7.3; 7.4; 7.5; 7.6; 7.7; 7.8; 7.9; 7.10; 7.11; and 10 more (not affected: 7.21)

## Every score

- VulDB: CVSS:4.0 6.9 Medium `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`
- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/dwBruijn/CVEs/blob/main/Mongoose/TCP_opt_dos.md> (exploit, third-party-advisory)
- <https://vuldb.com/vuln/359528> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/vuln/359528/cti> (permissions-required, signature, vdb-entry)
- <https://vuldb.com/submit/796230> (third-party-advisory, vdb-entry)
- <https://github.com/cesanta/mongoose/releases/tag/7.21> (patch, product, release-notes)

## Sources

- CVE List: [CVE-2026-6985](https://www.cve.org/CVERecord?id=CVE-2026-6985), CVE Terms of Use, modified 2026-04-27
- NVD: [CVE-2026-6985](https://nvd.nist.gov/vuln/detail/CVE-2026-6985), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-6985 · Whole record: https://cve.day/CVE-2026-6985.json · Rebuilt by cve.day 2026-11-25T22:59:19.598Z
