# CVE-2026-141470: Mongoose: IPv6 TCP packet can cause a null dereference while matching an IPv4 connection

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-12-01T20:28:15.099Z
- Modified: 2026-12-01T23:17:42.683Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- cesanta mongoose: >= 7.21, < 7.24

## References

- <https://github.com/cesanta/mongoose/security/advisories/GHSA-98gp-m7jv-xcmg> (exploit)
- <https://github.com/cesanta/mongoose/commit/fc79fd0be5d6058c343c29c0d73d8753529e50fc>
- <https://github.com/cesanta/mongoose/releases/tag/7.24>

## Sources

- CVE List: [CVE-2026-141470](https://www.cve.org/CVERecord?id=CVE-2026-141470), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-141470](https://nvd.nist.gov/vuln/detail/CVE-2026-141470), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-141470 · Whole record: https://cve.day/CVE-2026-141470.json · Rebuilt by cve.day 2026-12-01T23:32:32.866Z
