JLSEC-2026-2422: Critical severity julia/mongoose_jll vulnerability
Mongoose is an embedded web server and network library. From 7.17 until 7.24, Mongoose's MGTLSBUILTIN client in src/tlsbuiltin.c can accept an attacker-controlled server certificate chain when configured with a single DER CA certificate and processing a peer-provided chain, because mgtlsverifycertsignature() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.24
Event History
Frequently Asked Questions
Which deployments are exposed to this certificate-validation bypass?
The affected component is Mongoose's MG_TLS_BUILTIN client in versions 7.17 through before 7.24. Exposure requires configuring that client with a single DER-encoded CA certificate and having it process a server-provided certificate chain.
What must an attacker be able to do to exploit the issue?
An attacker must be able to redirect or otherwise intercept the client's connection and present a crafted certificate chain during a TLS 1.3 handshake. The attacker does not need the trusted CA's private key.
Are clients using other TLS configurations affected?
The described bypass is specific to the MG_TLS_BUILTIN client configuration that uses a single DER CA certificate. The provided information does not establish impact for other TLS backends or CA-certificate configurations.
What is the remediation?
Update Mongoose to version 7.24, which fixes the issue. No alternative mitigation is provided in the available data.