AArnott Nerdbank.MessagePack
Nerdbank.MessagePack: Attacker-controlled stackalloc in DateTime decoding causes process-terminating StackOverflowException
Nerdbank.MessagePack is a NativeAOT-compatible MessagePack serialization library. Prior to 1.1.62, Nerdbank.MessagePack contains an uncontrolled stack allocation vulnerability in DateTime decoding. A malicious MessagePack payload can declare an oversized timestamp extension length, causing the reader to allocate an attacker-controlled number of bytes on the stack. This can trigger a StackOverflowException, which is not catchable by user code and terminates the process. This vulnerability is fixed in 1.1.62.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.1.62
Fixed in 1.1.62
Mitigation
Upgrade Nerdbank.MessagePack to 1.1.62 or later.
References
- Vendor advisory github.com/AArnott/Nerdbank.MessagePack/securi…
- Patch github.com/AArnott/Nerdbank.MessagePack/pull/9…
- Patch github.com/AArnott/Nerdbank.MessagePack/commit…
1 more
- Release notes github.com/AArnott/Nerdbank.MessagePack/releas…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.