Vulnerability DatabaseCVE-2026-141470

CVE-2026-141470: 
NixOS vulnerability analysis and mitigation

Overview

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

Technical details

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.

Impact

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.

Exploitability

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

Exploitation steps

  1. Reconnaissance: Identify devices running Mongoose versions 7.21–7.23 with the built-in TCP/IP stack compiled with MG_ENABLE_TCPIP and MG_ENABLE_IPV6 enabled. These are typically embedded or IoT devices accessible on the network.
  2. Establish port knowledge: Determine or infer an active IPv4 TCP connection on the target device — specifically, identify the local port (e.g., port 80 for an HTTP server) and a remote port (e.g., 1234) of an established connection. This may be done via banner grabbing, traffic observation, or educated guessing of common service ports.
  3. Craft malicious packet: Construct a complete Ethernet/IPv6/TCP frame with a valid TCPv6 checksum, setting the TCP destination port to match the target's local port (e.g., 80) and the TCP source port to match the remote port of the established IPv4 connection (e.g., 1234).
  4. Deliver the packet: Send the crafted IPv6 packet to the target device over the network. No authentication or prior session is required.
  5. Trigger null dereference: The Mongoose built-in stack processes the packet through 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).

Indicators of compromise

  • Network: Unexpected IPv6/TCP packets directed at a device known to operate primarily over IPv4, particularly with destination ports matching active HTTP or other service ports; repeated connection attempts from external IPv6 addresses to embedded device ports.
  • Process/System: Unexpected crash or restart of the Mongoose process or networking task; watchdog-triggered device reboots on embedded targets with no other apparent cause.
  • Logs: Application or system logs showing a segmentation fault, null pointer dereference, or ASAN report referencing the call stack 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).

Mitigation and workarounds

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

Community reactions

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.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

sid

mongoose: 7.24+ds-1

Fixed

Ubuntu

Unknown

devel

mongoose

Not Affected

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-136716CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:drupal:drupal
YesYesNov 26, 2026
CVE-2026-129243HIGH8.8
  • NixOS logoNixOS
  • geoserver-3.0
YesYesNov 30, 2026
CVE-2026-120705HIGH8.6
  • NixOS logoNixOS
  • geoserver-2.27
YesYesNov 30, 2026
CVE-2026-141470HIGH8.2
  • NixOS logoNixOS
  • mongoose
NoYesDec 01, 2026
CVE-2026-142248LOW2.3
  • NixOS logoNixOS
  • mlflow
NoNoDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management