{"id":"CVE-2026-141470","summary":"Mongoose: IPv6 TCP packet can cause a null dereference while matching an IPv4 connection","details":"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.","aliases":["GHSA-98gp-m7jv-xcmg"],"modified":"2026-12-01T23:45:50.184147717Z","published":"2026-12-01T20:28:15.099Z","database_specific":{"cwe_ids":["CWE-476"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141470.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141470.json"},{"type":"FIX","url":"https://github.com/cesanta/mongoose/commit/fc79fd0be5d6058c343c29c0d73d8753529e50fc"},{"type":"WEB","url":"https://github.com/cesanta/mongoose/releases/tag/7.24"},{"type":"ADVISORY","url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-98gp-m7jv-xcmg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-141470"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cesanta/mongoose","events":[{"introduced":"b1c2ffe1a0aa13e3d94075b1a2c66b8b43ac9116"},{"fixed":"91b87a6bd8568f101680d4fc0db3d8773f74eb6c"},{"fixed":"fc79fd0be5d6058c343c29c0d73d8753529e50fc"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"7.21"},{"fixed":"7.24"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"fc79fd0be5d6058c343c29c0d73d8753529e50fc"}]},{"original_tag":"7.24","range":[{"fixed":"91b87a6bd8568f101680d4fc0db3d8773f74eb6c"}],"source":"REFERENCES_TAG"}]}}],"versions":["7.23","7.22","7.21"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-141470.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}