CVEfocus › CVE database › CVE-2021-31204

CVE-2021-31204.NET and Visual Studio Elevation of Privilege Vulnerability

CVSS 7.3 HighEPSS 1.2% (higher than 68% of CVEs)Published 2021-05-11Updated 2026-10-07Assigner: microsoft

.NET and Visual Studio Elevation of Privilege Vulnerability

CWE-269

What to do

Fixed builds are available from Red Hat: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

21Fixed
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 8aspnetcore-runtime-3.1Fixed0:3.1.15-1.el8_4RHSA-2021:2037
Red Hat Enterprise Linux 8aspnetcore-runtime-5.0Fixed0:5.0.6-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-3.1Fixed0:3.1.15-1.el8_4RHSA-2021:2037
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-5.0Fixed0:5.0.6-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8dotnetFixed0:5.0.203-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8dotnet-apphost-pack-3.1Fixed0:3.1.15-1.el8_4RHSA-2021:2037
Red Hat Enterprise Linux 8dotnet-apphost-pack-5.0Fixed0:5.0.6-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8dotnet-hostFixed0:5.0.6-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8dotnet-host-fxr-2.1Not affected
Red Hat Enterprise Linux 8dotnet-hostfxr-3.1Fixed0:3.1.15-1.el8_4RHSA-2021:2037
Red Hat Enterprise Linux 8dotnet-hostfxr-5.0Fixed0:5.0.6-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8dotnet-runtime-2.1Not affected
Red Hat Enterprise Linux 8dotnet-runtime-3.1Fixed0:3.1.15-1.el8_4RHSA-2021:2037
Red Hat Enterprise Linux 8dotnet-runtime-5.0Fixed0:5.0.6-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8dotnet-sdk-2.1Not affected
Red Hat Enterprise Linux 8dotnet-sdk-2.1.5xxNot affected
Red Hat Enterprise Linux 8dotnet-sdk-3.1Fixed0:3.1.115-1.el8_4RHSA-2021:2037
Red Hat Enterprise Linux 8dotnet-sdk-5.0Fixed0:5.0.203-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8dotnet-targeting-pack-3.1Fixed0:3.1.15-1.el8_4RHSA-2021:2037
Red Hat Enterprise Linux 8dotnet-targeting-pack-5.0Fixed0:5.0.6-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8dotnet-templates-3.1Fixed0:3.1.115-1.el8_4RHSA-2021:2037
Red Hat Enterprise Linux 8dotnet-templates-5.0Fixed0:5.0.203-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8dotnet3.1Fixed0:3.1.115-1.el8_4RHSA-2021:2037
Red Hat Enterprise Linux 8dotnet5.0Fixed0:5.0.203-1.el8_4RHSA-2021:2036
Red Hat Enterprise Linux 8netstandard-targeting-pack-2.1Fixed0:5.0.203-1.el8_4RHSA-2021:2036

What the vendor says

As published in the CVE record by microsoft, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.