
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-141470 is a NULL pointer dereference vulnerability in Cesanta Mongoose, an embedded web server and network library, affecting versions 7.21 through 7.23. When the built-in TCP/IP stack is compiled with both MG_ENABLE_TCPIP and MG_ENABLE_IPV6 enabled, a crafted IPv6/TCP packet whose source and destination ports match an established IPv4 connection can trigger a null dereference in getpeer() within src/net_builtin.c, crashing the process or networking task. The vulnerability was disclosed on November 20, 2026, and fixed in version 7.24 released the same day (GitHub Advisory, Mongoose 7.24 Release). It carries a CVSS v3.1 base score of 7.5 (High) and a CVSS v4.0 base score of 8.2 (High) (Red Hat Bugzilla).
The root cause is a NULL pointer dereference (CWE-476) in the getpeer() function in src/net_builtin.c. When rx_tcp() processes an incoming IPv6/TCP packet, the established-connection lookup evaluates pkt->ip->src to match against known IPv4 connections without first verifying that pkt->ip is non-null — for IPv6 packets, only pkt->ip6 is populated and pkt->ip is null. If the IPv6 packet's TCP source and destination ports coincidentally match an existing IPv4 connection, the code reaches this null dereference. The fix, committed as fc79fd0, adds a guard condition !(c->loc.is_ip6 ^ (pkt->ip6 != NULL)) before the IP-family-specific address comparison, ensuring IPv6 packets are never matched against IPv4 connections (GitHub Commit, GitHub Advisory). Exploitation requires the target to be built with both MG_ENABLE_TCPIP and MG_ENABLE_IPV6, and an established IPv4 TCP connection with ports matching the attacker's crafted packet must exist at the time of the attack.
Successful exploitation results in a denial of service — the Mongoose process or its networking task crashes upon receiving the malicious packet. There is no confidentiality or integrity impact; the vulnerability is limited to availability. On embedded targets, the outcome may range from termination of only the networking task to a full device restart, depending on the platform's fault handling (GitHub Advisory). Given Mongoose's widespread use in embedded and IoT devices, affected deployments may include industrial controllers, network appliances, and other resource-constrained systems where availability is critical.
A proof-of-concept (PoC) reproducer (poc/tcp_family_null.c) was published alongside the GitHub Security Advisory on November 20, 2026, demonstrating the null dereference via AddressSanitizer (GitHub Advisory). The NVD SSVC assessment classifies exploitation status as "poc" and the vulnerability as not automatable, reflecting the precondition that matching port state must exist. The EPSS score is approximately 0.96%, indicating a low but non-negligible probability of exploitation in the wild. No in-the-wild exploitation or threat actor attribution has been reported, and the vulnerability is not listed in the CISA KEV catalog (Feedly).
MG_ENABLE_TCPIP and MG_ENABLE_IPV6 enabled. These are typically embedded or IoT devices accessible on the network.mg_tcpip_rx() → rx_ip6() → rx_tcp() → getpeer(), where pkt->ip->src is dereferenced while pkt->ip is null, crashing the process or networking task (GitHub Advisory).mg_tcpip_rx → rx_ip6 → rx_tcp → getpeer in src/net_builtin.c; abrupt termination of the Mongoose service without a graceful shutdown message (GitHub Advisory).Upgrade Mongoose to version 7.24 or later, which includes the fix for CVE-2026-141470 (Mongoose 7.24 Release, GitHub Commit). No official workaround is provided by the vendor; however, as an interim measure, network-level filtering to block unsolicited IPv6 traffic from reaching affected devices can reduce exposure. Organizations should prioritize patching devices that have both MG_ENABLE_TCPIP and MG_ENABLE_IPV6 enabled in their build configuration, as devices without IPv6 support enabled are not affected (GitHub Advisory).
The vulnerability was reported to Cesanta with AI assistance by researcher mangowithegg and disclosed via GitHub Security Advisory on November 20, 2026 (GitHub Advisory). Red Hat tracked the issue via Bugzilla (Bug 2588264) with a medium severity rating (Red Hat Bugzilla). No significant broader media coverage or notable community commentary beyond standard vulnerability tracking has been observed.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."