JLSEC-2026-2427: High severity julia/mongoose_jll vulnerability
Mongoose is an embedded web server and network library. Prior to 7.23, the built-in TLS stack selected by MGTLSBUILTIN in src/tlsbuiltin.c accepts a TLS 1.3 record whose decrypted size is exactly the 16-byte authentication tag with no plaintext or ContentType byte. In mgtlsrecvrecord(), the msgsz length check permits that record and the recvlen calculation underflows to SIZEMAX, so a later handshake step treats stale buffer contents as a trusted message with an effectively unbounded length. An unauthenticated malicious TLS peer can trigger a heap out-of-bounds read before certificate or Finished validation, causing a remote denial of service. 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
Mongooseto a version that resolves this vulnerability.Fixed in 7.23
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using Mongoose versions before 7.23 with the built-in TLS stack selected by MG_TLS_BUILTIN are affected. The issue is reachable by a remote TLS peer.
Does exploitation require authentication or completion of a TLS handshake?
No. An unauthenticated malicious TLS peer can trigger the issue before certificate or Finished-message validation.
What is the practical impact of a successful exploit?
The malformed TLS 1.3 record can cause a heap out-of-bounds read, resulting in a remote denial of service. The provided information does not indicate confidentiality or integrity impact.
How can the issue be remediated?
Update to Mongoose version 7.23, which fixes the flaw.