Skip to content
zerobom
PRECVE-2026-C2D51280 HIGH AUTO Verified GHSA-7P7R-23FJ-Q9RF · CVE Assigned

Mongoose - Improper Validation of Array Index in X.509 Certificate Validity Date Parsing

Mongoose's built-in TLS stack improperly validates the month field in X.509 certificate validity timestamps, allowing a remote unauthenticated attacker to trigger an out-of-bounds read during the TLS handshake.

The vulnerability arises because the asnt2t() function parses the validity timestamps without validating the month field, passing unchecked values to mg_timegm(). This leads to an out-of-bounds array access in mg_timegm() when the month is zero, causing memory leakage on 32-bit systems and a crash (denial of service) on 64-bit systems.

Pre-CVE to NVD / OSV Lifecycle Tracker

Last checked 2026-12-01 16:18 UTC
1. Source Disclosed
2026-11-24 08:15 UTC
Published by Tenable Research Advisories (tier_2)
2. ZeroBOM Compiled
2026-11-25 19:59 UTC
OSV 1.6.7 published to live feed
3. OSV.dev / NVD Status
GHSA-7P7R-23FJ-Q9RF, GHSA-WC32-GJW7-5G65
NVD/OSV entry indexed

Affected Packages & Deterministic Ranges

Ecosystem Canonical PURL Affected Range Fixed Version Grounding Registry
GitHub pkg:github/cesanta/mongoose < 7.24 7.24 verified skipped

Verbatim Grounded Evidence

Verified verbatim substring matches copied directly from the source article body.

“Solution Upgrade to Mongoose version 7.24 or later.”
“In Mongoose, the built-in TLS stack (MG_TLS=MG_TLS_BUILTIN) parses the validity timestamps of a peer's X.509 certificate with asnt2t(), which hands the result to mg_timegm() without validating the month field. A remote, unauthenticated peer can trigger an out-of-bounds read during the TLS handshake.”

Credibility Gate Breakdown

Source Tier Weight (tier_2) 0.85
Extraction Specificity × 1.00
Composite Score 0.8500 [AUTO]
Accepted claims: 1 Dropped claims: 0
Scan Your SBOM Against PRECVE-2026-C2D51280
$ curl -sL https://zerobom.dev/osv/PRECVE-2026-C2D51280.json -o PRECVE-2026-C2D51280.json && zerobom scan --osv PRECVE-2026-C2D51280.json --sbom sbom.cdx.json