{"id":"CVE-2026-141470","aliases":["DEBIAN-CVE-2026-141470","EUVD-2026-140702","GHSA-98gp-m7jv-xcmg","JLSEC-2026-2421","UBUNTU-CVE-2026-141470"],"status":"published","title":"Mongoose: IPv6 TCP packet can cause a null dereference while matching an IPv4 connection","description":"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-\u003eip-\u003esrc even though only pkt-\u003eip6 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.","severity":{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high","assessor":"cna","from":"cve","others":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","from":"osv"}]},"epss":{"day":"2026-12-04","score":0.0104,"percentile":0.651,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true,"poc_reported":true},"cwes":["CWE-476"],"published":"2026-12-01T20:28:15Z","modified":"2026-12-04T20:00:02Z","fixes":[{"ecosystem":"Debian:14","package":"mongoose","fixed_in":["7.24+ds-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:14","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.24+ds-1"}]}],"versions":["7.21+ds-1","7.21+ds-1~bpo13+1","7.21+ds-2","7.22+ds-1","7.22+ds-1~bpo13+1","7.23+ds-1","7.23+ds-1~bpo13+1","7.24+ds-1~bpo13+1"]},{"source":"osv","ecosystem":"Julia","package":"Mongoose_jll","ranges":[{"type":"SEMVER","events":[{"introduced":"7.21.0+0"}]}]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.21+ds-1","7.21+ds-2","7.22+ds-1","7.23+ds-1"]}],"products":[{"vendor":"automattic","product":"mongoose"},{"vendor":"cesanta","product":"mongoose"}],"references":[{"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-98gp-m7jv-xcmg","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web","report"]},{"url":"https://github.com/cesanta/mongoose/commit/fc79fd0be5d6058c343c29c0d73d8753529e50fc","tags":["x_refsource_MISC","Patch","fix","web","report"]},{"url":"https://github.com/cesanta/mongoose/releases/tag/7.24","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141470.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-141470","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-141470","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-141470","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-141470","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-141470","title":"Mongoose: IPv6 TCP packet can cause a null dereference while matching an IPv4 connection","description":"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-\u003eip-\u003esrc even though only pkt-\u003eip6 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.","status":"published","published":"2026-12-01T20:28:15.099Z","modified":"2026-12-01T22:21:57.261Z","cvss":[{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high","assessor":"cna"}],"cwes":["CWE-476"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial","date":"2026-12-01"},"updated_at":"2026-12-01T22:31:06.201819Z"}],"euvd":[{"id":"EUVD-2026-140702","description":"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-\u003eip-\u003esrc even though only pkt-\u003eip6 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.","status":"published","published":"2026-12-01T20:28:15Z","modified":"2026-12-01T22:21:57Z","cvss":[{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-12-01T22:20:53.718034Z"}],"nvd":[{"id":"CVE-2026-141470","description":"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-\u003eip-\u003esrc even though only pkt-\u003eip6 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.","status":"published","published":"2026-12-01T21:17:10.833Z","modified":"2026-12-02T19:45:39.793Z","cvss":[{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-476"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial","date":"2026-12-01"},"updated_at":"2026-12-02T19:45:52.025045Z"}],"osv":[{"id":"CVE-2026-141470","title":"Mongoose: IPv6 TCP packet can cause a null dereference while matching an IPv4 connection","description":"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-\u003eip-\u003esrc even though only pkt-\u003eip6 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.","status":"published","published":"2026-12-01T20:28:15.099Z","modified":"2026-12-03T21:01:50.173689819Z","cvss":[{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-12-02T21:28:42.350468Z"},{"id":"DEBIAN-CVE-2026-141470","upstream":["CVE-2026-141470"],"description":"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-\u003eip-\u003esrc even though only pkt-\u003eip6 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.","status":"published","published":"2026-12-01T21:17:10.833Z","modified":"2026-12-03T10:00:10.479632166Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-12-03T10:18:16.589039Z"},{"id":"JLSEC-2026-2421","upstream":["CVE-2026-141470","EUVD-2026-140702"],"description":"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-\u003eip-\u003esrc even though only pkt-\u003eip6 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.","status":"published","published":"2026-12-04T19:49:13.191Z","modified":"2026-12-04T20:00:02.696450085Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.2,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"}],"updated_at":"2026-12-04T20:26:44.691545Z"},{"id":"UBUNTU-CVE-2026-141470","upstream":["CVE-2026-141470"],"description":"(Mongoose is an embedded web server and network library. From 7.21 unti ...)","status":"published","published":"2026-12-03T00:00:00Z","modified":"2026-12-03T20:48:21.192459823Z","updated_at":"2026-12-03T21:13:04.052985Z"}]}}
