JLSEC-2026-2428: High severity julia/mongoose_jll vulnerability
Mongoose is an embedded web server and network library. Prior to 7.23, the built-in TLS certificate parser selected by MGTLSBUILTIN fails to verify that a long-form DER element length fits within the remaining certificate buffer. In mgdertotlv() and mgdernext(), a peer-controlled length can advance the parser beyond the certificate and underflow the remaining uint32t length, causing mgtlsparsecertder() to continue walking an invalid pointer. An unauthenticated malicious TLS server, or a client presenting a certificate to a server configured for client certificates, can trigger an out-of-bounds read and denial of service during the handshake. This issue is fixed in version 7.23.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/Mongoose_jllto a version that resolves this vulnerability.Fixed in 7.23.0+0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.23
Event History
Frequently Asked Questions
Which deployments can be reached by an attacker?
Deployments using Mongoose's built-in TLS implementation selected by MG_TLS_BUILTIN are affected before version 7.23. A client can be affected when connecting to a malicious TLS server, and a server can be affected when it is configured to request or accept client certificates.
Does exploitation require authentication or user interaction?
No. The issue can be triggered during the TLS handshake by an unauthenticated peer presenting a crafted certificate.
What is the impact of a successful trigger?
A crafted long-form DER length can cause an out-of-bounds read while the certificate parser walks an invalid pointer. The stated impact is denial of service.
How can I remediate the issue?
Upgrade to Mongoose version 7.23 or later. The fix adds the missing validation that DER element lengths fit within the remaining certificate buffer.