CVE-2026-134170
CVE-2026-134170 · Cesanta Mongoose 7.22 before 7.24 Out-of-Bounds Read via mg_timegm
CVSS 8.2 · High · EPSS 0.4% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="mongoose"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Cesanta Mongoose 7.22 before 7.24 with the built-in TLS stack contains an out-of-bounds read in mg_timegm() that allows remote attackers to crash the process via crafted X.509 certificate validity months. Attackers can present a certificate with month '00' or out-of-range values during the handshake, before signature verification, causing an unchecked dm array index and denial of service.
- Published
- Updated
Stack: system
Affected products and versions
mongoose
- Versions
- ≥ 7.22, < 7.24: Affected (custom)
Update to 7.24
mongoose Debian 14
- Versions
- 7.21+ds-1
- 7.21+ds-1~bpo13+1
- 7.21+ds-2
- 7.22+ds-1
- 7.22+ds-1~bpo13+1
- 7.23+ds-1
All versions (7)
- 7.23+ds-1~bpo13+1
- Affected ranges
- ECOSYSTEM: < 7.24+ds-1
Update to 7.24+ds-1
mongoose Ubuntu 26.10
- Versions
- 7.21+ds-1
- 7.21+ds-2
- 7.22+ds-1
- 7.23+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/cesanta/mongoose/security/advisories/GHSA-wc32-gjw7-5g65
- https://github.com/cesanta/mongoose/commit/7fccc2b75f64f416ba1c7fd4f5072ae33b44d578
- https://github.com/cesanta/mongoose/releases/tag/7.24
- https://github.com/cesanta/mongoose/blob/7.23/src/util.c#L14-L25
- https://github.com/cesanta/mongoose/blob/7.23/src/tls_builtin.c#L1407-L1423
- https://www.vulncheck.com/advisories/cesanta-mongoose-7.22-before-7.24-out-of-bounds-read-via-mg-timegm
- https://nvd.nist.gov/vuln/detail/CVE-2026-134170