CVE-2021-31204

published 11 May 2021 · updated 7 Oct 2026

.NET and Visual Studio Elevation of Privilege Vulnerability

7.3HighCVSS 7.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in .NET 5.0.6-servicing.21220.11, .NET 3.1.15-servicing.21214.3 and Visual Studio publication.

.NET and Visual Studio Elevation of Privilege Vulnerability

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Microsoft.NET>=5.0.0 <5.0.6-servicing.21220.11, >=3.1 <3.1.15-servicing.21214.35.0.6-servicing.21220.11, 3.1.15-servicing.21214.3
MicrosoftVisual Studio>=16.0 <publication, >=16.0.0 <publication, >=15.0.0 <publication, >=8.0 <publicationpublication

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Microsoft, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-31204 severity on Zeptric[![CVE-2021-31204](https://zeptric.io/badge/cve/CVE-2021-31204.svg)](https://zeptric.io/cve/CVE-2021-31204)