JLSEC-2026-2421: High severity julia/mongoose_jll vulnerability
Mongoose is an embedded web server and network library. From 7.21 until 7.24, Mongoose's built-in TCP/IP stack with MGENABLETCPIP and MGENABLEIPV6 enabled can dereference a null IPv4 header in getpeer() in src/netbuiltin.c when rxtcp() receives an IPv6/TCP packet whose source and destination ports match an established IPv4 connection. The cross-family lookup reaches pkt->ip->src even though only pkt->ip6 is present, allowing a network attacker able to deliver IPv6 packets to crash the process or networking task. This issue is fixed in 7.24.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
mongooseto a version that resolves this vulnerability.Fixed in 7.24
Event History
Frequently Asked Questions
Which deployments are exposed to this crash?
Deployments using Mongoose versions from 7.21 through before 7.24 are exposed only when the built-in TCP/IP stack is enabled with both MG_ENABLE_TCPIP and MG_ENABLE_IPV6. The affected component is the built-in stack, not necessarily every use of the library.
What does an attacker need to exploit the issue?
An attacker needs network access sufficient to deliver IPv6/TCP packets to the affected process or networking task. No authentication, privileges, or user interaction are required; the packet ports must match an established IPv4 connection.
What is the impact of successful exploitation?
The malformed cross-family connection lookup can dereference a null IPv4 header and crash the affected process or networking task. The provided information describes an availability impact, not confidentiality or integrity impact.
What can be done if upgrading is not immediately possible?
Disable either MG_ENABLE_TCPIP or MG_ENABLE_IPV6 where operationally feasible, since both options must be enabled for the described vulnerable path. Restricting delivery of IPv6 traffic to the affected service can also reduce exposure where network controls permit.