CVE-2026-134170
Cesanta Mongoose 7.22 before 7.24 Out-of-Bounds Read via mg_timegm
High · 8.2Fix available
- CVSS
- 8.2
- EPSS
- 0.45% (p31)
- Published
- 2026-11-20
- Age
- 11d old
- Modified
- 2026-11-25
- Product
- cesanta mongoose
- Aliases
- GHSA-wc32-gjw7-5g65
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
Description
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.
Fixed in
7.24
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | mongoose | >=7.22, <7.24 | 7.24 |
Sources
- NVD · first seen 10d ago · NVD terms of use
- OSV · first seen 10d ago · CC-BY 4.0
- CVE List · first seen 10d ago · CVE Terms of Use
References
- https://github.com/cesanta/mongoose/security/advisories/GHSA-wc32-gjw7-5g65 vendor-advisory
- https://github.com/cesanta/mongoose/commit/7fccc2b75f64f416ba1c7fd4f5072ae33b44d578 patch
- https://github.com/cesanta/mongoose/releases/tag/7.24 release-notes
- https://github.com/cesanta/mongoose/blob/7.23/src/util.c#L14-L25 technical-description
- https://github.com/cesanta/mongoose/blob/7.23/src/tls_builtin.c#L1407-L1423 technical-description
- https://www.vulncheck.com/advisories/cesanta-mongoose-7.22-before-7.24-out-of-bounds-read-via-mg-timegm third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134170.json advisory
- https://github.com/cesanta/mongoose package
- https://nvd.nist.gov/vuln/detail/CVE-2026-134170 advisory