Mongoose: Built-in TLS client accepts a server certificate after issuer signature verification fails
- CVE-2026-141471
- EUVD-2026-140703
Description
Mongoose is an embedded web server and network library. From 7.17 until 7.24, Mongoose's MG_TLS_BUILTIN client in src/tls_builtin.c can accept an attacker-controlled server certificate chain when configured with a single DER CA certificate and processing a peer-provided chain, because mg_tls_verify_cert_signature() can return a negative issuer-key parsing result that callers negate as though verification succeeded. A crafted issuer with the trusted CA subject and public-key bytes but an unparseable RSA encoding can pair with an attacker-self-signed leaf that is not signed by the trusted CA, allowing a redirected client connection to complete a TLS 1.3 handshake and exchange application data without the trusted CA private key. This issue is fixed in 7.24.
Text from the CVE.org record.
Recommendation
cesanta mongoose
- If you run a version from 7.17 to before 7.24update to 7.24 or laterMinor version change: check the release notes
Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
cesanta mongoose
Affected versions Fixed in from 7.17 to before 7.24 7.24
Product versions from the NVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.