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

Published Apr 25, 2026
·
Updated

A weakness has been identified in Cesanta Mongoose up to 7.20. This vulnerability affects the function handleopt of the file /src/netbuiltin.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 Software

2 affected components
Cesanta Mongoose<=7.20
Cesanta Mongoose>=7.0<7.21

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Cesanta Mongoose to a version that resolves this vulnerability.

    Fixed in 7.21

Event History

Apr 25, 2026
CVE Published
via MITRE·04:15 PM
Data Sourced
via MITRE·04:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software
Apr 15, 58301
Event
via FIRST·07:42 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-6985?

CVE-2026-6985 has been classified as a high severity vulnerability due to the potential for an infinite loop affecting the TCP Option Handler.

2

How do I fix CVE-2026-6985?

To mitigate CVE-2026-6985, upgrade Cesanta Mongoose to version 7.21 or later, which addresses the identified infinite loop issue.

3

What software is affected by CVE-2026-6985?

CVE-2026-6985 affects Cesanta Mongoose versions up to and including 7.20.

4

What is the attack vector for CVE-2026-6985?

The attack vector for CVE-2026-6985 involves manipulating the argument optlen within the function handle_opt in the TCP Option Handler.

5

What potential impact does CVE-2026-6985 have on my system?

Exploitation of CVE-2026-6985 can lead to denial of service conditions due to an infinite loop affecting system performance.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203