GitHub advisory · NuGet
.NET Remote Code Execution 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.
A remote unauthenticated attacker could exploit this vulnerability by sending specially crafted requests to a .NET vulnerable webapp or loading a specially crafted file into a vulnerable application.
Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/334
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