CyberRota Analysis
AI-GeneratedMongoose versions prior to 7.23 are vulnerable to a critical flaw that allows network attackers to impersonate a TLS server, potentially leading to interception, credential disclosure, and traffic manipulation through the acceptance of forged self-signed certificates. This vulnerability primarily affects applications using Mongoose as an embedded web server and should be prioritized by developers and security teams utilizing this library to ensure secure communications. Immediate upgrading to version 7.23 or later is essential to mitigate these risks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.