← All advisories
Medium First reported · 1 source · 1 article

Mongoose built-in TLS X.509 date parsing out-of-bounds read enables memory leak or DoS

Mongoose's built-in TLS stack (MG_TLS_BUILTIN) parses certificate validity timestamps without validating the month field. A month value of 0 makes mg_timegm() index its dm array far out of bounds during the TLS handshake. On 32-bit embedded targets this leaks memory contents through an accept/reject oracle, and on 64-bit systems it crashes the process, causing denial of service. Users should update to a fixed Mongoose release or avoid the built-in TLS stack until patched.

Why Medium

Remotely triggerable by an unauthenticated peer, but impact is limited to a crash or a slow memory-disclosure oracle, with no known exploitation.

Categories

  • Mobile & IoT
  • Network Infrastructure

Affected products

  • Mongoose (built-in TLS stack, MG_TLS=MG_TLS_BUILTIN)

Timeline

  • Picked up by Early Warning