Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted IPv6/TCP packet to device
-
ExploitMatch ports of established IPv4 connection
-
Executiongetpeer() dereferences null IPv4 header
-
ImpactCrash Mongoose process or networking task
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target to build Mongoose's built-in TCP/IP stack (MG_ENABLE_TCPIP) with IPv6 support (MG_ENABLE_IPV6) enabled - both are non-default, so devices using Mongoose over an OS socket stack are not affected. At the time of the attack an established IPv4 TCP connection must exist, and the attacker must send an IPv6/TCP packet whose source and destination ports exactly match that connection's ports, and must be able to route IPv6 packets to the device. These constraints (reflected in AC:H/AT:P) limit exploitation: no code execution or data disclosure is possible, only a crash of the process or networking task, and success depends on a matching live IPv4 connection rather than any attacker-chosen state. |
| Impact | Signals are internally consistent and point to a genuine but bounded denial-of-service issue rather than a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) with availability-only impact (VA:H) describes a remote, unauthenticated crash that nonetheless carries high attack complexity and a present attack requirement - reflecting that exploitation needs a live IPv4 TCP connection whose ports the attacker's IPv6 packet must match. SSVC aligns: Exploitation=poc, Automatable=no, Technical Impact=partial, and the vuln.today priority is 'this_week' (not act_now/emergency). There is no CISA KEV entry and no EPSS score in the supplied data, so widespread or active exploitation is not indicated; the SSVC Automatable=no further argues against mass, wormable abuse. The net picture is a real but conditional DoS: the impact is limited to availability (no confidentiality/integrity loss per VC:N/VI:N), the preconditions (built-in TCP/IP stack plus IPv6 plus a matching established connection) are non-default and narrow the exploitable population, and there is no confidentiality or code-execution angle. Missing data to note explicitly: EPSS probability is not provided, and KEV status is absent (treat as not-listed, not confirmed-absent). |
| Exploit ScenarioDerived | An attacker able to deliver IPv6 packets to an embedded device running Mongoose's built-in TCP/IP stack with IPv6 enabled sends an IPv6/TCP frame whose source and destination ports match an already-established IPv4 TCP connection; getpeer() then reads pkt->ip->src on a null IPv4 header and the process or networking task crashes. A PoC reproducer (poc/tcp_family_null.c) is published in the GHSA advisory, but it feeds a crafted frame directly into mg_tcpip_rx() and does not use a physical network interface, so it is not verified as a working remote exploit. High attack complexity and the present attack requirement (AC:H/AT:P) make reliable triggering dependent on a matching live IPv4 connection. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Cesanta Mongoose 7.21 through 7.23 can be crashed by a remote, unauthenticated attacker sending an IPv6/TCP packet whose source and destination ports match an already-established IPv4 connection: the connection lookup in getpeer() reads pkt->ip->src while only pkt->ip6 is populated, causing a null pointer dereference that terminates the process or the networking task. The flaw only affects firmware built with the built-in TCP/IP stack (MG_ENABLE_TCPIP) and IPv6 (MG_ENABLE_IPV6) enabled, both non-default, and exploitation additionally requires a live IPv4 connection whose ports the attacker can guess or observe, plus IPv6 routing to the device. A public proof-of-concept reproducer exists and was confirmed against release 7.23 and master, but there is no code execution, data disclosure, or confirmed active exploitation; the result is bounded to availability impact and is fixed in 7.24.
RemediationAI
Upgrade to Mongoose 7.24, which contains the family-matching guard in getpeer() (commit fc79fd0be5d6058c343c29c0d73d8753529e50fc, release https://github.com/cesanta/mongoose/releases/tag/7.24); projects that vendor the amalgamated mongoose.c/mongoose.h must regenerate or replace those files, not just the src/ tree, and rebuild firmware. Where upgrading is not immediately possible, the exposure can be removed at build time by omitting MG_ENABLE_IPV6 (the trigger packet is IPv6-only, so IPv4-only builds cannot reach the null read - at the cost of losing IPv6 connectivity) or by omitting MG_ENABLE_TCPIP and running Mongoose on the platform's OS socket stack (which drops the built-in stack's bare-metal capability). Neither build option has a runtime toggle, so both require reflashing. Note that the fault is a null dereference reachable only while an IPv4 connection is established with the matching port pair; if that connection is torn down between attempts, the vulnerable path is not reached, but this is not a reliable mitigation. See the vendor advisory at https://github.com/cesanta/mongoose/security/advisories/GHSA-98gp-m7jv-xcmg for the official fix guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mongoose ships an optional embedded TCP/IP stack (src/net_builtin.c, amalgamated into mongoose.c) used on bare-metal and RTOS targets instead of the host OS socket stack. When MG_ENABLE_IPV6 is enabled, received frames are dispatched by rx_ip6() for IPv6 and by the IPv4 path otherwise, and both eventually reach rx_tcp() and the helper getpeer(), which matches an incoming segment to an established struct mg_connection by comparing TCP ports. The established-connection branch of getpeer() evaluated pkt->ip->src to compare addresses without first verifying that pkt->ip was non-null; for an IPv6 packet only pkt->ip6 is set, so the cross-family port match dereferences NULL. This is CWE-476 (NULL Pointer Dereference), a reliability/availability fault rather than a memory-corruption primitive - AddressSanitizer reports the fault through mg_tcpip_rx(), rx_ip6(), rx_tcp() and getpeer(). The upstream fix (commit fc79fd0be5d6058c343c29c0d73d8753529e50fc) adds the family guard !(c->loc.is_ip6 ^ (pkt->ip6 != NULL)) to the match condition so only a same-family connection can be selected. Neither the built-in stack nor IPv6 is enabled by default; deployments that run Mongoose over an OS socket layer are unaffected.
Know when Mongoose gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Remote unauthenticated DoS-only null dereference; AC:H because a live IPv4 connection with ports matching the attacker's IPv6 packet must already exist; availability-only impact (A:H), no C/I.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
A high-severity denial-of-service vulnerability in Cesanta Mongoose 7.21-7.23 can allow a remote attacker to crash network services in affected firmware, disrupting device availability. Only products built with the non-default TCP/IP stack and IPv6 options enabled and reachable over IPv6 are exposed, so leadership should confirm whether any shipped or fielded products meet these conditions. Impact is limited to service availability - no data disclosure, code execution, or confirmed active exploitation has been reported.
Vendor-released patch: upgrade to Mongoose 7.24; interim mitigations include blocking or restricting inbound IPv6 traffic to affected devices at network boundaries and disabling MG_ENABLE_IPV6 or the built-in TCP/IP stack where operationally possible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Mongoose ODM for Node.js before version 8.9.5 contains a search injection vulnerability when using $where filters with p
An exploitable stack buffer overflow vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6
An exploitable use-after-free vulnerability exists in the HTTP server implementation of Cesanta Mongoose 6.8. Rated crit
An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.
An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.
Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.4. Rated critical severity (CVSS 9.8), this vu
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6. Rated critical severity (CVSS 9.8), this vu
An integer overflow in parse_mqtt in mongoose.c in Cesanta Mongoose 6.16 allows an attacker to achieve remote DoS (infin
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection. Rated critical severity (CVSS 9.1
The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 (compiled with OpenSSL support) is vulnerable to remote OO
The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 and 6.7-6.18 (compiled with mbedTLS support) is vulnerable
The mg_http_serve_file function in Cesanta Mongoose HTTP server 7.0 is vulnerable to remote OOB write attack via connect
EUVD-2026-140702
NVD
CVE.org
Vulnrichment
GitHub
Exploit-DB