Skip to main content

Cesanta Mongoose EUVDEUVD-2026-131887

| CVE-2026-134171 MEDIUM
Improper Handling of Length Parameter Inconsistency (CWE-130)
2026-11-20 VulnCheck GHSA-42pv-xhf8-w7pq
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain L2-adjacent network access
  2. Delivery
    Craft IPv6 TCP/ICMPv6 frame with extension header and inflated plen
  3. Exploit
    Checksum routine uses full plen as length
  4. Execution
    Out-of-bounds read past receive buffer
  5. Impact
    Crash 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Mongoose 7.21 <7.24

Affected Packages

euvd mongoose fix: 7.24

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

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 4.3 MEDIUM

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).

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.8%
Top 42% exploitable
Prevalence
Medium
popular embedded networking library, but built-in IPv6 TCP/IP stack is a niche opt-in build
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2025-23061 CRITICAL POC
9.0 Jan 15

Mongoose ODM for Node.js before version 8.9.5 contains a search injection vulnerability when using $where filters with p

CVE-2017-2894 CRITICAL POC
9.8 Nov 07

An exploitable stack buffer overflow vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6

CVE-2017-2891 CRITICAL POC
9.8 Nov 07

An exploitable use-after-free vulnerability exists in the HTTP server implementation of Cesanta Mongoose 6.8. Rated crit

CVE-2017-2922 CRITICAL POC
9.8 Nov 07

An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.

CVE-2017-2921 CRITICAL POC
9.8 Nov 07

An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.

CVE-2023-3696 CRITICAL POC
9.8 Jul 17

Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.4. Rated critical severity (CVSS 9.8), this vu

CVE-2022-2564 CRITICAL POC
9.8 Jul 28

Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6. Rated critical severity (CVSS 9.8), this vu

CVE-2019-19307 CRITICAL POC
9.8 Nov 26

An integer overflow in parse_mqtt in mongoose.c in Cesanta Mongoose 6.16 allows an attacker to achieve remote DoS (infin

CVE-2024-53900 CRITICAL POC
9.1 Dec 02

Mongoose before 8.8.3 can improperly use $where in match, leading to search injection. Rated critical severity (CVSS 9.1

CVE-2021-26530 CRITICAL POC
9.1 Feb 08

The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 (compiled with OpenSSL support) is vulnerable to remote OO

CVE-2021-26529 CRITICAL POC
9.1 Feb 08

The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 and 6.7-6.18 (compiled with mbedTLS support) is vulnerable

CVE-2021-26528 CRITICAL POC
9.1 Feb 08

The mg_http_serve_file function in Cesanta Mongoose HTTP server 7.0 is vulnerable to remote OOB write attack via connect

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy