{"id":"CVE-2026-44375","aliases":["CVE-2026-44375","GHSA-2cwq-pwfr-wcw3"],"related":[],"kind":"vulnerability","state":"published","title":"Nerdbank.MessagePack: Attacker-controlled stackalloc in DateTime decoding causes process-terminating StackOverflowException","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nNerdbank.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.\n\n### Impact\n\nApplications are impacted if they deserialize MessagePack data from untrusted or attacker-controlled sources using Nerdbank.MessagePack and the target type contains a `DateTime` value.\n\nA small malicious payload can cause process termination, resulting in a denial of service. This may affect services, APIs, workers, message consumers, or other long-running processes that deserialize untrusted MessagePack input.\n\nThe issue occurs because DateTime timestamp extension decoding derives `tokenSize` from the attacker-controlled extension length before validating that the timestamp length is one of the legal MessagePack timestamp sizes: 4, 8, or 12 bytes. When the buffer is incomplete, that unvalidated size is propagated to the streaming reader slow path, where it is used in a `stackalloc`.\n\n### Patches\n\nThe 1.1.62 version contains the fix for this security vulnerability.\n\n### Workarounds\n\nIf upgrading is not yet possible, avoid deserializing untrusted MessagePack payloads into type graphs that may contain `DateTime` fields or properties.\n\nInput byte-size limits alone may not fully mitigate this issue, because the malicious payload can be small while declaring a very large extension length. Possible mitigations include:\n\n- Pre-validating MessagePack extension headers before deserialization and rejecting timestamp extensions whose length is not 4, 8, or 12 bytes.\n- Rejecting or filtering extension type `-1` timestamp values from untrusted input unless they are known to be valid.\n- Running deserialization of untrusted payloads in an isolated process that can be safely restarted after termination.\n- Restricting MessagePack deserialization to trusted producers until a patched version is available.\n\n### Resources\n\n- CWE-789: Uncontrolled Memory Allocation: https://cwe.mitre.org/data/definitions/789.html\n- MessagePack timestamp extension specification: https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type","format":"markdown","source":"ghsa"},{"lang":"es","text":"Nerdbank.MessagePack es una biblioteca de serialización MessagePack compatible con NativeAOT. Antes de la versión 1.1.62, Nerdbank.MessagePack contiene una vulnerabilidad de asignación de pila incontrolada en la decodificación de DateTime. Una carga útil MessagePack maliciosa puede declarar una longitud de extensión de marca de tiempo excesiva, lo que hace que el lector asigne un número de bytes controlado por el atacante en la pila. Esto puede desencadenar una StackOverflowException, que no es capturable por el código de usuario y termina el proceso. Esta vulnerabilidad está corregida en la versión 1.1.62.","source":"nvd"}],"published":"2026-05-06T23:05:52.000Z","modified":"2026-10-26T14:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-789"],"affected":[{"ranges":[{"version":"< 1.1.62","status":"affected"}],"vendor":"AArnott","product":"Nerdbank.MessagePack","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.62"}],"ecosystem":"NuGet","package":"Nerdbank.MessagePack","purl":"pkg:nuget/Nerdbank.MessagePack","source":"ghsa"}],"references":[{"url":"https://github.com/AArnott/Nerdbank.MessagePack/security/advisories/GHSA-2cwq-pwfr-wcw3","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AArnott/Nerdbank.MessagePack/pull/941","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AArnott/Nerdbank.MessagePack/commit/7d1eb319cfabe7280e70699946c9a48579fa2f30","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AArnott/Nerdbank.MessagePack/releases/tag/v1.1.62","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44375","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/AArnott/Nerdbank.MessagePack","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-14T16:01:58.538Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44375","url":"https://www.cve.org/CVERecord?id=CVE-2026-44375","licence":"CVE Terms of Use","modified":"2026-05-14T16:02:12.327Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2cwq-pwfr-wcw3","url":"https://github.com/advisories/GHSA-2cwq-pwfr-wcw3","licence":"CC-BY-4.0","modified":"2026-05-14T21:04:32.794Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44375","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44375","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:21.713Z","epss":{"score":0.0063,"percentile":0.44676,"date":"2026-11-30T12:00:22.000Z"}}