GitHub advisory · NuGet
.NET Denial of Service Vulnerability
Description
Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 9.0. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.
The NrbfDecoder component in .NET 9 contains a denial of service vulnerability due to incorrect input validation.
Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/333
Applications that do not use the NrbfDecoder component are not affected by this vulnerability. By default, .NET console apps and web apps do not reference this component.
The vulnerability affects any Microsoft .NET Core project if it uses any of affected packages versions listed below
Package name | Affected version | Patched version ------------ | ---------------- | ------------------------- System.Formats.Nrbf | <9.0.0 | 9.0.0
If you have a runtime or SDK with a version listed, or an affected package listed in affected software or affected packages, you're exposed to the vulnerability.
Manual fix · NuGet
dotnet add package System.Formats.Nrbf --version 9.0.0Sources