CVE-2026-141471 Mongoose: Built-in TLS client accepts a server certificate after issuer signature verification fails
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Debian
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cesanta mongoose | = >= 7.17, < 7.24; >= 7.17, < 7.24 | 7.24 | Fixed |
| debian/mongoose(Debian 14) | < 7.24+ds-1; = 7.21+ds-1; = 7.21+ds-1~bpo13+1; = 7.21+ds-2 +5 more | 7.24+ds-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cesanta mongoose | = >= 7.17, < 7.24 | No fix listed |
| cesanta mongoose | >= 7.17, < 7.24 | 7.24 |
| debian/mongoose(Debian:14) | < 7.24+ds-1 | 7.24+ds-1 |
| debian/mongoose(Debian:14) | = 7.21+ds-1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.21+ds-1~bpo13+1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.21+ds-2 | No fix listed |
| debian/mongoose(Debian:14) | = 7.22+ds-1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.22+ds-1~bpo13+1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.23+ds-1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.23+ds-1~bpo13+1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.24+ds-1~bpo13+1 | No fix listed |
References
- https://github.com/cesanta/mongoose/security/advisories/GHSA-wv74-vfp5-x4cp exploit vendor-advisory
- https://github.com/cesanta/mongoose/commit/ca5ca3403c08c93f71b833ee24985345aff58dfd patch
- https://github.com/cesanta/mongoose/releases/tag/7.24 release-notes
- ENISA EUVD EUVD-2026-140703 third-party-advisory
- Debian Security Tracker CVE-2026-141471 vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2588258 issue-tracking
- www.cve.org
- nvd.nist.gov