CVE-2026-73251

Mongoose Built-in TLS: CA-bundle certificate chain accepted without any signature verification

Published Aug 20, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
Mongoose is an embedded web server and network library. Prior to 7.23, a network attacker can impersonate a TLS server to a Mongoose client configured with a multi-certificate CA bundle. In src/tls_builtin.c, the mg_tls_init() function stores the bundle in tls->ca_bundle_der while tls->ca_der.len remains zero, and mg_tls_recv_cert() uses tls_bundle_find() to accept a Common Name match without calling mg_tls_verify_cert_signature(). A forged self-signed certificate can therefore satisfy hostname and CertificateVerify checks and enable interception, credential disclosure, traffic modification, and malicious responses. This issue is fixed in version 7.23.

Analysis

AI-generated

Technical impact

In Mongoose before version 7.23, clients that use a multi‑certificate CA bundle trust any certificate chain that matches a hostname without verifying its signature. The library stores the bundle but never sets the length of the DER data, and the receiving function accepts a CN match without calling the built‑in signature verifier. A network attacker can therefore forge a self‑signed certificate, satisfy both the hostname and the certificate verification checks, and impersonate the server. This flaw can lead to credential disclosure, traffic modification, and delivery of malicious responses. The weakness is a classic example of insecure certificate validation (CWE‑295).

Affected Systems

All installations of the Mongoose embedded web server and network library running a version earlier than 7.23 are affected. The issue specifically impacts configurations that enable a multi‑certificate CA bundle for TLS connections. Any client built with cesanta::mongoose that relies on the built‑in TLS subsystem falls under this risk.

Risk and Exploitability

The CVSS score of 9.3 reflects a high‑severity vulnerability that an attacker could exploit over the network. Although an EPSS score is not currently available, the flaw remains exploitable because an adversary only needs to present a suitable certificate during the TLS handshake. The vulnerability is not yet listed in the CISA KEV catalog, but its critical nature means that an active attacker could achieve full interception and manipulation of TLS traffic with minimal effort.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Mongoose to version 7.23 or later to fix the insecure certificate chain handling.
  • Reconfigure client deployments to avoid using multi‑certificate CA bundles; where possible, use a single trusted certificate instead of a bundle that can be misinterpreted.
  • Ensure that TLS configuration enforces signature verification and hostname matching before accepting any certificate, and audit the TLS implementation for correct chain validation.

Generated by OpenCVE AI on August 20, 2026 at 19:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cesanta
Cesanta mongoose
Vendors & Products Cesanta
Cesanta mongoose
Type Values Removed Values Added
Description Mongoose is an embedded web server and network library. Prior to 7.23, a network attacker can impersonate a TLS server to a Mongoose client configured with a multi-certificate CA bundle. In src/tls_builtin.c, the mg_tls_init() function stores the bundle in tls->ca_bundle_der while tls->ca_der.len remains zero, and mg_tls_recv_cert() uses tls_bundle_find() to accept a Common Name match without calling mg_tls_verify_cert_signature(). A forged self-signed certificate can therefore satisfy hostname and CertificateVerify checks and enable interception, credential disclosure, traffic modification, and malicious responses. This issue is fixed in version 7.23.
Title Mongoose Built-in TLS: CA-bundle certificate chain accepted without any signature verification
Weaknesses CWE-295
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 20, 2026, 7:50 PM
Reserved
Aug 11, 2026, 5:18 PM
Status
Analyzed
Published
Aug 20, 2026, 6:16 PM
Modified
Oct 18, 2026, 8:10 PM