Most Windows-based servers receive these patches automatically via Microsoft Update.
var builder = WebApplication.CreateBuilder(args); .net 6.0.21
As a servicing update, .NET 6.0.21 did not introduce new features but focused on and reliability fixes across the runtime and SDK. Release Date: August 8, 2023 Support Status: End of Life (EOL) as of November 2024. Components Included: .NET Runtime 6.0.21 ASP.NET Core Runtime 6.0.21 .NET SDK versions 6.0.121 and 6.0.316 Key Security Fixes Components Included:
The primary driver for the 6.0.21 update was the mitigation of several security risks: Microsoft Support +4 Key Security Fixes in 6
. It no longer receives security updates or technical support from Microsoft. Replacement: Installations of 6.0.21 were typically superseded by later patches, such as 6.0.22, which automatically removed previous versions during installation. Microsoft Support +4 Key Security Fixes in 6.0.21 The primary purpose of this version was to address several high-impact security vulnerabilities: Versions of .NET CVE-2023-35390 (.NET Remote Code Execution): Addressed a flaw where commands used in directories with weak permissions could lead to remote code execution. CVE-2023-38180 (.NET Denial of Service): Fixed a vulnerability in Kestrel (the web server) where it would fail to disconnect malicious clients, potentially crashing services. CVE-2023-35391 (.NET Information Disclosure): Resolved an issue in ASP.NET Core that could lead to unauthorized data exposure. Versions of .NET +1 Technical Components The 6.0.21 update applied across the entire .NET ecosystem: 11 sites .NET August 2023 Updates – .NET 7.0.10, .NET 6.0.21 - .NET Blog Aug 8, 2023 —
using MyApp.Data; using MyApp.Repositories; using Microsoft.EntityFrameworkCore;