Summary
CVE-2026-134170 is an out-of-bounds read (CWE-129, Improper Validation of Array Index) in the built-in TLS stack of Cesanta Mongoose. A remote attacker can crash the process by presenting a crafted X.509 certificate. The CVE record rates it 8.2 (High) under CVSS v4.0.
Technical details
- Root cause:
mg_timegm()does not properly validate the month value parsed from an X.509 certificate’s validity period, which causes an out-of-bounds read. - Trigger conditions: the application uses Mongoose’s built-in TLS stack, and the peer presents a certificate with an invalid month value (for example
00). - Attack vector: network. The invalid certificate is processed during the TLS handshake, before signature verification completes.
- Impact: the process crashes, which causes a denial of service.
Affected software
- Cesanta Mongoose 7.22 up to, but not including, 7.24 (7.22 and 7.23), when the built-in TLS stack is used.
Severity
- CVSS v4.0: 8.2 (High). Vector:
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 - CVSS v3.1: 5.9 (Medium). Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Mitigation and recommended actions
- Immediate: upgrade Mongoose to version 7.24 or later. The fix is in commit 7fccc2b75f64f416ba1c7fd4f5072ae33b44d578.
- No workarounds were identified in the sources reviewed. Until you can patch, consider limiting network exposure of affected TLS listeners to trusted peers.
- Rebuild and redeploy any firmware or applications that embed Mongoose, because the library is compiled into the product.

