Microsoft is releasing this security advisory to provide information about a vulnerability in the .NET SDK's dotnet-watch component. This advisory provides guidance on updating affected SDK installations.
A local attacker who can replace or modify a temporary solution file used by dotnet-watch can alter a subsequent build. The fix stores generated solution files in a private temporary directory and keeps each file open with read-only sharing while the build uses it.
Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/502
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H/E:U/RL:O/RC:CWindows is outside this advisory's affected scope when its temporary directory is private to the current user, as assumed by the implementation. Shared or insecurely configured Windows temporary directories are not covered by that assumption.
The .NET SDK includes dotnet-watch and the Microsoft.DotNet.HotReload.Watch assembly.
Each SDK feature band is a separate servicing line. Update an affected 10.0.3xx installation to the fixed 10.0.4xx SDK listed below.
Package | Affected version | Patched version --- | --- | --- .NET SDK (dotnet-watch) 10.0.3xx | >= 10.0.300, <= 10.0.303 | 10.0.404
Package | Affected version | Patched version --- | --- | --- .NET SDK (dotnet-watch) 10.0.4xx | >= 10.0.400, <= 10.0.403 | 10.0.404
Package | Affected version | Patched version --- | --- |...
10.0.40411.0.100Exploitability
AV:LAC:HPR:LUI:RScope
S:CImpact
C:HI:HA:H7.5/CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H/E:U/RL:O/RC:COther