Mongoose: IPv6 TCP packet can cause a null dereference while matching an IPv4 connection
Summary
| CVE | CVE-2026-141470 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-01 21:17:10 UTC |
| Updated | 2026-12-01 21:17:10 UTC |
| 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->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. |
Risk And Classification
Primary CVSS: v4.0 8.2 HIGH from [email protected]
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
Problem Types: CWE-476 | CWE-476 CWE-476: NULL Pointer Dereference
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 8.2 | HIGH | 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/C... |
| 4.0 | CNA | DECLARED | 8.2 | HIGH | 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 |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
HighAttack Requirements
PresentPrivileges Required
NoneUser Interaction
NoneConfidentiality
NoneIntegrity
NoneAvailability
HighSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS: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
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/cesanta/mongoose/releases/tag/7.24 | [email protected] | github.com | |
| github.com/cesanta/mongoose/commit/fc79fd0be5d6058c343c29c0d73d8753529e50fc | [email protected] | github.com | |
| github.com/cesanta/mongoose/security/advisories/GHSA-98gp-m7jv-xcmg | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.