Description
MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.303 and 3.1.9, deserializing attacker-controlled MessagePack data as System.Object through PrimitiveObjectFormatter can cause excessive memory allocation. The formatter allocates an object[] from each declared array length before the configured object-graph depth limit rejects the input, while nested array headers can reuse the same trailing unread bytes to satisfy per-header length validation. A comparatively small payload can therefore keep many large arrays alive at once. When an attacker can submit such data repeatedly, the allocations can cause severe managed-heap pressure, excessive garbage collection, process termination, or loss of service. Exposure requires an application to deserialize untrusted data through the affected formatter path and permit repeated attacker-controlled submissions, such as a reachable ASP.NET Core SignalR hub method with an object parameter and AddMessagePackProtocol() enabled. This issue is fixed in versions 2.5.303 and 3.1.9.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MessagePack-CSharp | MessagePack-CSharp | < 2.5.303, >= 3.0.0, < 3.1.9 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | dotnet10 | 10.0.113-10.0.13-0ubuntu1~26.10.1 | USN-8942-1 |
| Ubuntu 26.10 | dotnet11 | 11.0.100-11.0.0~rc2-0ubuntu1~26.10.1 | USN-8942-1 |
| Ubuntu 26.04 LTS | dotnet10 | 10.0.113-10.0.13-0ubuntu1~26.04.1 | USN-8942-1 |
| Ubuntu 24.04 LTS | dotnet10 | 10.0.113-10.0.13-0ubuntu1~24.04.1 | USN-8942-1 |
| Ubuntu 24.04 LTS | dotnet8 | 8.0.132-8.0.32-0ubuntu1~24.04.1 | USN-8942-1 |
| Ubuntu 22.04 LTS | dotnet6 +1 | No fix yet | — |
| Ubuntu 22.04 LTS | dotnet8 | 8.0.132-8.0.32-0ubuntu1~22.04.1 | USN-8942-1 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | dotnet-host +8 | 10.0.13-1.el10_2 | ALSA-2026:86195 |
| AlmaLinux 10 | dotnet-hostfxr-8.0 +7 | 8.0.32-1.el10_2 | ALSA-2026:86168 |
| AlmaLinux 10 | dotnet-hostfxr-9.0 +7 | 9.0.21-1.el10_2 | ALSA-2026:86172 |
| AlmaLinux 10 | dotnet-sdk-10.0 +4 | 10.0.113-1.el10_2 | ALSA-2026:86195 |
| AlmaLinux 10 | dotnet-sdk-8.0 +3 | 8.0.132-1.el10_2 | ALSA-2026:86168 |
| AlmaLinux 10 | dotnet-sdk-9.0 +5 | 9.0.122-1.el10_2 | ALSA-2026:86172 |
| AlmaLinux 9 | dotnet-host +8 | 10.0.13-1.el9_8 | ALSA-2026:86193 |
| AlmaLinux 9 | dotnet-hostfxr-8.0 +7 | 8.0.32-1.el9_8 | ALSA-2026:86169 |
| AlmaLinux 9 | dotnet-hostfxr-9.0 +7 | 9.0.21-1.el9_8 | ALSA-2026:86171 |
| AlmaLinux 9 | dotnet-sdk-10.0 +4 | 10.0.113-1.el9_8 | ALSA-2026:86193 |
| AlmaLinux 9 | dotnet-sdk-8.0 +3 | 8.0.132-1.el9_8 | ALSA-2026:86169 |
| AlmaLinux 9 | dotnet-sdk-9.0 +5 | 9.0.122-1.el9_8 | ALSA-2026:86171 |
| AlmaLinux 8 | dotnet +5 | 10.0.113-1.el8_10 | ALSA-2026:86192 |
| AlmaLinux 8 | dotnet-hostfxr-10.0 +7 | 10.0.13-1.el8_10 | ALSA-2026:86192 |
| AlmaLinux 8 | dotnet-hostfxr-8.0 +7 | 8.0.32-2.el8_10 | ALSA-2026:86594 |
| AlmaLinux 8 | dotnet-hostfxr-9.0 +7 | 9.0.21-1.el8_10 | ALSA-2026:86170 |
| AlmaLinux 8 | dotnet-sdk-8.0 +3 | 8.0.132-2.el8_10 | ALSA-2026:86594 |
| AlmaLinux 8 | dotnet-sdk-9.0 +5 | 9.0.122-1.el8_10 | ALSA-2026:86170 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | dotnet10.0 | 10.0.113-1.el10_2 | RLSA-2026:86195 |
| Rocky Linux 10 | dotnet8.0 | 8.0.132-1.el10_2 | RLSA-2026:86168 |
| Rocky Linux 10 | dotnet9.0 | 9.0.122-1.el10_2 | RLSA-2026:86172 |
| Rocky Linux 9 | dotnet10.0 | 10.0.113-1.el9_8 | RLSA-2026:86193 |
| Rocky Linux 9 | dotnet8.0 | 8.0.132-1.el9_8 | RLSA-2026:86169 |
| Rocky Linux 9 | dotnet9.0 | 9.0.122-1.el9_8 | RLSA-2026:86171 |
| Rocky Linux 8 | dotnet10.0 | 10.0.113-1.el8_10 | RLSA-2026:86192 |
| Rocky Linux 8 | dotnet8.0 | 8.0.132-2.el8_10 | RLSA-2026:86594 |
| Rocky Linux 8 | dotnet9.0 | 9.0.122-1.el8_10 | RLSA-2026:86170 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | dotnet10-runtime | 10.0.13-r0 | — |
| Alpine v3.24 | dotnet8-runtime | 8.0.32-r0 | — |
| Alpine v3.24 | dotnet9-runtime | 9.0.21-r0 | — |
| Alpine v3.23 | dotnet10-runtime | 10.0.13-r0 | — |
| Alpine v3.23 | dotnet8-runtime | 8.0.32-r0 | — |
| Alpine v3.23 | dotnet9-runtime | 9.0.21-r0 | — |
| Alpine v3.22 | dotnet8-runtime | 8.0.32-r0 | — |
| Alpine v3.22 | dotnet9-runtime | 9.0.21-r0 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-msgpack | No fix yet | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 10 | dotnet-host +8 | 10.0.13-1.0.1.el10_2 | ELSA-2026-86195 |
| Oracle Linux 10 | dotnet-hostfxr-8.0 +7 | 8.0.32-1.0.1.el10_2 | ELSA-2026-86168 |
| Oracle Linux 10 | dotnet-hostfxr-9.0 +7 | 9.0.21-1.0.1.el10_2 | ELSA-2026-86172 |
| Oracle Linux 10 | dotnet-sdk-10.0 +4 | 10.0.113-1.0.1.el10_2 | ELSA-2026-86195 |
| Oracle Linux 10 | dotnet-sdk-8.0 +3 | 8.0.132-1.0.1.el10_2 | ELSA-2026-86168 |
| Oracle Linux 10 | dotnet-sdk-9.0 +5 | 9.0.122-1.0.1.el10_2 | ELSA-2026-86172 |
| Oracle Linux 9 | dotnet-host +8 | 10.0.13-1.0.1.el9_8 | ELSA-2026-86193 |
| Oracle Linux 9 | dotnet-hostfxr-8.0 +7 | 8.0.32-1.0.1.el9_8 | ELSA-2026-86169 |
| Oracle Linux 9 | dotnet-hostfxr-9.0 +7 | 9.0.21-1.0.1.el9_8 | ELSA-2026-86171 |
| Oracle Linux 9 | dotnet-sdk-10.0 +4 | 10.0.113-1.0.1.el9_8 | ELSA-2026-86193 |
| Oracle Linux 9 | dotnet-sdk-8.0 +3 | 8.0.132-1.0.1.el9_8 | ELSA-2026-86169 |
| Oracle Linux 9 | dotnet-sdk-9.0 +5 | 9.0.122-1.0.1.el9_8 | ELSA-2026-86171 |
| Oracle Linux 8 | dotnet +5 | 10.0.114-1.0.2.el8_10 | ELSA-2026-86192 |
| Oracle Linux 8 | dotnet-host +8 | 10.0.14-1.0.2.el8_10 | ELSA-2026-86192 |
| Oracle Linux 8 | dotnet-hostfxr-8.0 +7 | 8.0.32-2.0.1.el8_10 | ELSA-2026-86594 |
| Oracle Linux 8 | dotnet-hostfxr-9.0 +7 | 9.0.21-1.0.1.el8_10 | ELSA-2026-86170 |
| Oracle Linux 8 | dotnet-sdk-8.0 +3 | 8.0.132-2.0.1.el8_10 | ELSA-2026-86594 |
| Oracle Linux 8 | dotnet-sdk-9.0 +5 | 9.0.122-1.0.1.el8_10 | ELSA-2026-86170 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| NuGet | MessagePack | < 2.5.303 | 2.5.303 | GHSA-qhrr-8q5h-9q3h |
| NuGet | MessagePack | >= 3.0.0, < 3.1.9 | 3.1.9 | GHSA-qhrr-8q5h-9q3h |
Advisories 30
- ALSA-2026:86192 Critical: .NET 10.0 security, bug fix, and enhancement update AlmaLinux Security Advisories · Nov 6, 2026
- ALSA-2026:86195 Critical: .NET 10.0 security, bug fix, and enhancement update AlmaLinux Security Advisories · Nov 5, 2026
- ALSA-2026:86193 Critical: .NET 10.0 security, bug fix, and enhancement update AlmaLinux Security Advisories · Nov 5, 2026
- WID-SEC-2026-3893 Microsoft Entwicklerwerkzeuge: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 4, 2026
- ELSA-2026-86192 Critical: .NET 10.0 security, bug fix, and enhancement update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 3, 2026
- ALSA-2026:86594 Critical: .NET 8.0 security, bug fix, and enhancement update AlmaLinux Security Advisories · Nov 2, 2026
- ALSA-2026:86172 Critical: .NET 9.0 security, bug fix, and enhancement update AlmaLinux Security Advisories · Oct 31, 2026
- ALSA-2026:86168 Critical: .NET 8.0 security, bug fix, and enhancement update AlmaLinux Security Advisories · Oct 31, 2026
- ALSA-2026:86171 Critical: .NET 9.0 security, bug fix, and enhancement update AlmaLinux Security Advisories · Oct 31, 2026
- ALSA-2026:86169 Critical: .NET 8.0 security, bug fix, and enhancement update AlmaLinux Security Advisories · Oct 31, 2026
- ALSA-2026:86170 Critical: .NET 9.0 security, bug fix, and enhancement update AlmaLinux Security Advisories · Oct 31, 2026
- USN-8942-1 dotnet8, dotnet10, dotnet11 vulnerabilities Ubuntu Security Notices (USN) · Oct 30, 2026
- RLSA-2026:86193 Critical: .NET 10.0 security, bug fix, and enhancement update Rocky Linux Security Advisories · Oct 22, 2026
- RLSA-2026:86171 Critical: .NET 9.0 security, bug fix, and enhancement update Rocky Linux Security Advisories · Oct 22, 2026
- RLSA-2026:86192 Critical: .NET 10.0 security, bug fix, and enhancement update Rocky Linux Security Advisories · Oct 22, 2026
- RLSA-2026:86195 Critical: .NET 10.0 security, bug fix, and enhancement update Rocky Linux Security Advisories · Oct 22, 2026
- RLSA-2026:86170 Critical: .NET 9.0 security, bug fix, and enhancement update Rocky Linux Security Advisories · Oct 22, 2026
- RLSA-2026:86172 Critical: .NET 9.0 security, bug fix, and enhancement update Rocky Linux Security Advisories · Oct 22, 2026
- RLSA-2026:86168 Critical: .NET 8.0 security, bug fix, and enhancement update Rocky Linux Security Advisories · Oct 22, 2026
- RLSA-2026:86594 Critical: .NET 8.0 security, bug fix, and enhancement update Rocky Linux Security Advisories · Oct 22, 2026
- RLSA-2026:86169 Critical: .NET 8.0 security, bug fix, and enhancement update Rocky Linux Security Advisories · Oct 22, 2026
- ELSA-2026-86172 Critical: .NET 9.0 security, bug fix, and enhancement update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Oct 21, 2026
- ELSA-2026-86193 Critical: .NET 10.0 security, bug fix, and enhancement update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Oct 21, 2026
- ELSA-2026-86169 Critical: .NET 8.0 security, bug fix, and enhancement update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Oct 21, 2026
- ELSA-2026-86171 Critical: .NET 9.0 security, bug fix, and enhancement update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Oct 21, 2026
- ELSA-2026-86594 Critical: .NET 8.0 security, bug fix, and enhancement update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Oct 21, 2026
- ELSA-2026-86170 Critical: .NET 9.0 security, bug fix, and enhancement update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Oct 21, 2026
- ELSA-2026-86168 Critical: .NET 8.0 security, bug fix, and enhancement update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Oct 21, 2026
- ELSA-2026-86195 Critical: .NET 10.0 security, bug fix, and enhancement update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Oct 21, 2026
- WID-SEC-2026-3922 Microsoft Apps: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 15, 2026
References
- https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-qhrr-8q5h-9q3h
- https://github.com/MessagePack-CSharp/MessagePack-CSharp/commit/7fd78bbf3476e03beae8b0f7a521125525a8a64a
- https://github.com/MessagePack-CSharp/MessagePack-CSharp/commit/95b63fca4f7097d3cac12d1a95286af4b4bbf02c
- https://github.com/MessagePack-CSharp/MessagePack-CSharp/releases/tag/v2.5.303
- https://github.com/MessagePack-CSharp/MessagePack-CSharp/releases/tag/v3.1.9