{"id":"CVE-2026-141471","summary":"Mongoose: Built-in TLS client accepts a server certificate after issuer signature verification fails","details":"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.","aliases":["GHSA-wv74-vfp5-x4cp"],"modified":"2026-12-01T22:00:23.698340310Z","published":"2026-12-01T20:29:58.297Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141471.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-295"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141471.json"},{"type":"FIX","url":"https://github.com/cesanta/mongoose/commit/ca5ca3403c08c93f71b833ee24985345aff58dfd"},{"type":"WEB","url":"https://github.com/cesanta/mongoose/releases/tag/7.24"},{"type":"ADVISORY","url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-wv74-vfp5-x4cp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-141471"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cesanta/mongoose","events":[{"introduced":"0a86bc0af22173b8c952c11551a067fd6f843d83"},{"fixed":"91b87a6bd8568f101680d4fc0db3d8773f74eb6c"},{"fixed":"ca5ca3403c08c93f71b833ee24985345aff58dfd"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"7.17"},{"fixed":"7.24"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"ca5ca3403c08c93f71b833ee24985345aff58dfd"}],"source":"REFERENCES_COMMIT"},{"original_tag":"7.24","range":[{"fixed":"91b87a6bd8568f101680d4fc0db3d8773f74eb6c"}],"source":"REFERENCES_TAG"}]}}],"versions":["7.23","7.22","7.21","7.20","7.19","7.18","7.17"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-141471.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}]}