IA Squad
SearchPT
dotnet · MessagePackCritical

MessagePack: StackOverflow via ReadDateTime with attacker-controlled extension length

MessagePackReader.ReadDateTime() can allocate stack memory based on an attacker-controlled MessagePack extension length, leading to a StackOverflowException tha

26 Jun 2026Read 1 minSeverity: act now

What changed

MessagePackReader.ReadDateTime() can allocate stack memory based on an attacker-controlled MessagePack extension length, leading to a StackOverflowException that terminates the host process.

Who it affects

Applications that deserialize untrusted payloads into types containing DateTime or DateTimeOffset values using the MessagePack library.

What to do today

Upgrade MessagePack to the patched version for your release line as soon as it is available; until then, avoid deserializing untrusted MessagePack payloads into schemas with DateTime/DateTimeOffset values.

The trail
Collected Audited Written Published