Mongoose is an embedded web server and network library. From 7.21 until 7.24, Mongoose's built-in TCP/IP stack with MG_ENABLE_TCPIP and MG_ENABLE_IPV6 enabled can dereference a null IPv4 header in getpeer() in src/net_builtin.c when rx_tcp() 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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"cesanta:mongoose": [
">= 7.21, < 7.24"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-141470",
"id": "CVE-2026-141470",
"imported": "2026-12-03T21:20:36.287Z",
"modified": "2026-12-02T19:45:39.793Z",
"published": "2026-12-01T21:17:10.833Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-141470"
},
{
"affected": {
"Cesanta:Mongoose": [
"7.21, < 7.24"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-140702",
"id": "EUVD-2026-140702",
"imported": "2026-12-03T21:20:36.289Z",
"modified": "2026-12-01T22:21:57Z",
"published": "2026-12-01T20:28:15Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-140702"
}
]
}