Skip to main content

Mongoose CVE-2026-141470

| EUVDEUVD-2026-140702 HIGH
NULL Pointer Dereference (CWE-476)
2026-12-01 GitHub_M
8.2
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted IPv6/TCP packet to device
  2. Exploit
    Match ports of established IPv4 connection
  3. Execution
    getpeer() dereferences null IPv4 header
  4. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

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

Alert me

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

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

Vendor (GitHub_M) PRIMARY 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
vuln.today AI 5.9 MEDIUM

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.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 22:03 EUVD
CVE Published
Dec 01, 2026 - 20:28 cve.org
HIGH 8.2

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

Prevalence
Medium
popular embedded library, but vulnerable built-in TCP/IP+IPv6 mode is uncommon
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

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

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.

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