CVE-2026-141470 Mongoose: IPv6 TCP packet can cause a null dereference while matching an IPv4 connection
HighCVSS 8.2
EPSS 0.96%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- Debian
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cesanta mongoose | = >= 7.21, < 7.24; >= 7.21, < 7.24 | 7.24 | Fixed |
| debian/mongoose(Debian 14) | < 7.24+ds-1; = 7.21+ds-1; = 7.21+ds-1~bpo13+1; = 7.21+ds-2 +5 more | 7.24+ds-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cesanta mongoose | = >= 7.21, < 7.24 | No fix listed |
| cesanta mongoose | >= 7.21, < 7.24 | 7.24 |
| debian/mongoose(Debian:14) | < 7.24+ds-1 | 7.24+ds-1 |
| debian/mongoose(Debian:14) | = 7.21+ds-1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.21+ds-1~bpo13+1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.21+ds-2 | No fix listed |
| debian/mongoose(Debian:14) | = 7.22+ds-1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.22+ds-1~bpo13+1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.23+ds-1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.23+ds-1~bpo13+1 | No fix listed |
| debian/mongoose(Debian:14) | = 7.24+ds-1~bpo13+1 | No fix listed |
References
- https://github.com/cesanta/mongoose/security/advisories/GHSA-98gp-m7jv-xcmg exploit vendor-advisory
- https://github.com/cesanta/mongoose/commit/fc79fd0be5d6058c343c29c0d73d8753529e50fc patch
- https://github.com/cesanta/mongoose/releases/tag/7.24 release-notes
- ENISA EUVD EUVD-2026-140702 third-party-advisory
- Debian Security Tracker CVE-2026-141470 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2588264 issue-tracking
- www.cve.org
- nvd.nist.gov