Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain L2-adjacent network access
-
DeliveryCraft IPv6 TCP/ICMPv6 frame with extension header and inflated plen
-
ExploitChecksum routine uses full plen as length
-
ExecutionOut-of-bounds read past receive buffer
-
ImpactCrash or adjacent-memory read
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Length parameter validation
|
| Exploitation Conditions | Requires the target to be built with Mongoose's built-in TCP/IP stack AND IPv6 (MG_ENABLE_TCPIP=1 and MG_ENABLE_IPV6=1) - this is an opt-in configuration, not the default for deployments that run Mongoose over a host OS socket stack. The attacker must be on the same Layer-2 segment to inject a raw Ethernet frame (the advisory describes a local-network frame, implying adjacency rather than routed reach). No authentication, no established TCP connection, and no user interaction are needed: a single crafted IPv6 TCP or ICMPv6 frame with an extension header (so plen exceeds the remaining payload) triggers the over-read. Limiting factors: the non-default built-in-stack build, required L2 adjacency, and the fact that the over-read primarily affects a checksum comparison - so impact is most often a crash/DoS on embedded targets rather than attacker-visible data disclosure. |
| Impact | Signals are moderate and partly conflicting. The supplied CVSS 4.0 base score is 6.9 (medium) with vulnerable-system availability impact only (VA:L) and no confidentiality or integrity impact (VC:N/VI:N) - consistent with an out-of-bounds READ whose primary effect is a crash or a failed checksum rather than code execution or a clean data-exfiltration channel. The supplied vector asserts AV:N (network), but the GHSA advisory explicitly states the attack vector is 'a raw Ethernet frame on the local network,' which is Layer-2 adjacency, not routed network reachability - treat this as adjacent-network exposure and verify the AV with the vendor. No EPSS score and no KEV listing were provided, and the vuln.today decision label is 'this_month' (not act_now/emergency), so there is no signal of active exploitation. A public PoC does exist: the GHSA advisory embeds a Python script that builds the triggering IPv6 frame and demonstrates an AddressSanitizer heap-buffer-overflow (over-read), so exploit material is available even though exploitation has not been observed in the wild. Net assessment: a real but bounded issue - remote-ish (L2-adjacent), unauthenticated, trivially triggerable where the affected build configuration is present, but with low real-world impact (most likely DoS/read of adjacent RAM rather than attacker-visible disclosure) and a narrow affected configuration. Patch within the normal cycle; it is not a drop-everything emergency on the available signals. |
| Exploit ScenarioDerived | An attacker on the same local network segment as a device running Mongoose's built-in TCP/IP stack with IPv6 enabled sends a single crafted IPv6 TCP or ICMPv6 Ethernet frame containing an extension header (e.g. Hop-by-Hop) so the header's plen field overstates the real payload length. The checksum routine (tcp6csum_ok/icmp6csum_ok → p6csum → csumup) then reads up to 65535 bytes past the receive buffer. A public PoC in the GHSA advisory demonstrates the over-read via AddressSanitizer; the realistic outcome is a crash/DoS on constrained embedded targets, with only speculative information disclosure since the over-read bytes feed a checksum comparison rather than an attacker-readable channel. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
An out-of-bounds read in Cesanta Mongoose 7.21 through 7.23 lets an attacker on the same Layer-2 segment crash or destabilize embedded targets by sending a single crafted IPv6 TCP or ICMPv6 frame. The flaw only manifests when Mongoose is built with its own TCP/IP stack and IPv6 enabled (MG_ENABLE_TCPIP=1 and MG_ENABLE_IPV6=1) - an opt-in configuration, not the default for deployments running Mongoose over a host OS socket stack - and because the over-read feeds a checksum comparison, the realistic outcome is a heap over-read of up to 65535 bytes leading to denial of service, with information disclosure possible but not demonstrated. The vendor fixed the issue in 7.24 and published a proof-of-concept frame-generation script alongside the advisory; there is no CISA KEV listing and no confirmed in-the-wild exploitation, and the assessed risk is moderate with an EPSS-style priority of 'this_month'.
RemediationAI
Upgrade to Cesanta Mongoose 7.24, the first release containing the fix (https://github.com/cesanta/mongoose/releases/tag/7.24); the underlying change is commit cd05b162a84eb7b631e5c038616045e74bb906d1, which replaces the plen-derived checksum length with the actual parsed payload length and adds a TCP data-offset validation check. Projects that vendor mongoose.c/mongoose.h must re-vendor the 7.24 amalgamation, since the defect lives in src/net_builtin.c and is compiled into the shipped amalgamated source. Where an immediate upgrade is not possible, the most direct reduction of exposure is to build with MG_ENABLE_IPV6=0 (the IPv6 receive paths, including rx_ip6() and the ICMPv6/TCP checksum helpers, are not reached without it) or, if IPv6 is required on the device, to build with MG_ENABLE_TCPIP=0 and route traffic through the host OS stack - both choices cost IPv6 connectivity or the bare-metal no-OS networking capability respectively. Deployments that must keep the built-in IPv6 stack in the interim should treat the affected interface as an L2-adjacent attack surface and restrict which hosts can reach it at the switch or access-point level (port isolation, dedicated VLAN, or 802.1X), accepting that this is a containment measure rather than a fix since a single raw Ethernet frame from any on-segment host is sufficient. Patch status per vendor: available; fixed version 7.24.
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's built-in network stack validates IPv6 transport checksums in src/net_builtin.c using p6csum(), which builds a pseudo-header and then calls csumup() over a caller-supplied length. In versions up to 7.23, tcp6csum_ok() and icmp6csum_ok() derive that length directly from the attacker-controlled 16-bit IPv6 payload-length field (mg_ntohs(ip6->plen)), even though rx_ip6() has already walked past any Hop-by-Hop, Routing or Fragment extension headers and correspondingly shrunk the usable payload. The checksum loop therefore reads plen bytes starting at the transport header and runs past the end of the received frame into adjacent receive-buffer memory (AddressSanitizer reports a heap-buffer-overflow in csumup at net_builtin.c:242, reached via p6csum:309 and tcp6csum_ok:321). The CVE record classifies this as CWE-130 (improper handling of length parameter inconsistency) while the GitHub advisory classifies it as CWE-125 (out-of-bounds read); both describe the same root cause, a length field that is trusted without reconciling it against the data actually present after header parsing. The upstream commit cd05b162 addresses it by passing the protocol number explicitly to p6csum() instead of reading ip6->next, and by threading the real payload length (PDIFF(pkt->tcp, pkt->pay.buf) + pkt->pay.len, and sizeof(*pkt->icmp6) + pkt->pay.len for ICMPv6) into the checksum helpers, plus adding a TCP data-offset sanity check (off < sizeof(struct tcp) / 4) during header parsing.
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:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Advisory describes an L2 raw-Ethernet frame so AV:A not AV:N; single frame, no auth/UI so AC:L/PR:N/UI:N; over-read yields crash/DoS (A:L) with no confirmed disclosure or integrity impact (C:N/I:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Cesanta Mongoose 7.21 before 7.24 contains an out-of-bounds read vulnerability in rx_ip6() checksum validation that allows remote unauthenticated attackers to read past received packets by sending IPv6 extension headers. Attackers can send a single IPv6 TCP or ICMPv6 packet with extension headers, causing tcp6csum_ok() and icmp6csum_ok() to use the full payload length and read adjacent receive-buffer memory.
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 buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
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-131887
GHSA-42pv-xhf8-w7pq
NVD
CVE.org
EPSS
Exploit-DB