{
  "schema_version": "1.6.7",
  "id": "PRECVE-2026-C2D51280",
  "modified": "2026-11-24T08:15:33Z",
  "published": "2026-11-24T08:15:33Z",
  "summary": "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.",
  "details": "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.",
  "aliases": [
    "GHSA-7P7R-23FJ-Q9RF",
    "GHSA-WC32-GJW7-5G65"
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "GitHub",
        "name": "cesanta/mongoose",
        "purl": "pkg:github/cesanta/mongoose"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.24"
            }
          ]
        }
      ],
      "database_specific": {
        "zerobom": {
          "evidence_quotes": [
            "Solution\nUpgrade 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."
          ],
          "grounding_status": "verified",
          "registry_status": "skipped",
          "routing": "auto",
          "aliases": [
            "GHSA-wc32-gjw7-5g65"
          ]
        }
      }
    }
  ],
  "references": [
    {
      "type": "ARTICLE",
      "url": "https://www.tenable.com/security/research/tra-2026-70"
    },
    {
      "type": "WEB",
      "url": "https://github.com/cesanta/mongoose/security/advisories/GHSA-wc32-gjw7-5g65"
    },
    {
      "type": "WEB",
      "url": "https://github.com/cesanta/mongoose"
    },
    {
      "type": "DISCUSSION",
      "url": "https://www.tenable.com/security/research/tra-2026-71"
    },
    {
      "type": "WEB",
      "url": "https://github.com/cesanta/mongoose/security/advisories/GHSA-7p7r-23fj-q9rf"
    }
  ],
  "database_specific": {
    "zerobom": {
      "source_tier": "tier_2",
      "source_tier_weight": 0.85,
      "extraction_specificity": 1.0,
      "composite_score": 0.85,
      "routing": "auto",
      "severity": "HIGH",
      "cwe_ids": [],
      "evidence_quotes": [
        "Solution\nUpgrade 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."
      ],
      "article_type": "original_disclosure",
      "source_name": "Tenable Research Advisories",
      "prompt_version": "v1.5",
      "extractor_model": "gpt-4.1-mini"
    }
  }
}
