JLSEC-2026-2418: Medium severity julia/mongoose_jll vulnerability
Mongoose is an embedded web server and network library. Prior to 7.22, mgpathissane in src/util.c read path.buf[1] without first requiring path.len to be at least two and read s[2] when only two bytes remained. Unauthenticated remote requests reaching mghttpupload or mghttpservedir with the affected short path shapes could therefore trigger one-byte heap out-of-bounds reads. On bare-metal or RTOS targets without memory protection, the adjacent byte could be exposed or influence whether a path was accepted, and instrumented builds could crash. This issue is fixed in version 7.22.
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.22
Event History
Frequently Asked Questions
Which deployments are exposed to unauthenticated exploitation?
Deployments that expose Mongoose HTTP handling and route requests to mg_http_upload or mg_http_serve_dir are affected before version 7.22. No authentication or user interaction is required.
Are all affected systems impacted in the same way?
The described impact is most significant on bare-metal or RTOS targets without memory protection, where an adjacent heap byte could be exposed or affect path acceptance. Instrumented builds may crash when the out-of-bounds read occurs.
What should be done if the application cannot be updated immediately?
The provided information identifies the vulnerable request paths as mg_http_upload and mg_http_serve_dir. Restricting unauthenticated remote access to endpoints that reach those handlers can reduce exposure until upgrading to 7.22.