9.3critical
Mongoose Built-in TLS: CA-bundle certificate chain accepted without any signature verification
- Severity
- 9.3critical CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cesanta mongoose | < 7.23, before 7.23 | CVE List, NVD |
All scores
| GitHub_M | 9.3critical CVSS:4.0 | 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 |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
Mongoose es un servidor web incrustado y una biblioteca de red. Antes de la 7.23, un atacante de red puede suplantar un servidor TLS a un cliente Mongoose configurado con un paquete de CA de múltiples certificados. En src/tls_builtin.c, la función mg_tls_init() almacena el paquete en tls -> ca_bundle_der mientras que tls -> ca_der.len permanece en cero, y mg_tls_recv_cert() utiliza tls_bundle_find() para aceptar una coincidencia de Nombre Común sin llamar a mg_tls_verify_cert_signature(). Un certificado autofirmado falsificado puede, por lo tanto, satisfacer las comprobaciones de nombre de host y CertificateVerify y permitir la interceptación, la divulgación de credenciales, la modificación del tráfico y respuestas maliciosas. Este problema está corregido en la versión 7.23.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-73251 changed 2026-08-20 | CVE Terms of Use |
| NVD | CVE-2026-73251 changed 2026-10-18 | Public domain |