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.
Published: 2026-08-20
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Thu, 20 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Cesanta
Cesanta mongoose
Vendors & Products Cesanta
Cesanta mongoose

Thu, 20 Aug 2026 17:45:00 +0000

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'}


Subscriptions

Cesanta Mongoose
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-20T17:34:50.472Z

Reserved: 2026-08-11T17:18:01.598Z

Link: CVE-2026-73251

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T18:16:45.743

Modified: 2026-08-20T18:16:45.743

Link: CVE-2026-73251

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T18:30:03Z

Weaknesses
  • CWE-295

    Improper Certificate Validation