CVE-2021-31204
.NET and Visual Studio Elevation of Privilege Vulnerability
.NET and Visual Studio Elevation of Privilege Vulnerability
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.3
.NET and Visual Studio Elevation of Privilege Vulnerability
.NET and Visual Studio Elevation of Privilege Vulnerability
- Record
CVE-2021-31204- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C - Weakness
- CWE-269
- Updated
- 2026-11-02
EUVDEUVD-2021-18117
7.3
.NET and Visual Studio Elevation of Privilege Vulnerability
- Record
EUVD-2021-18117- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C - Updated
- 2026-11-02
NVD
7.3
.NET and Visual Studio Elevation of Privilege Vulnerability
- Record
CVE-2021-31204- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-269
- Updated
- 2026-11-02
OSV
7.3
.NET and Visual Studio Elevation of Privilege Vulnerability
- Record
CVE-2021-31204- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2021:1546
7.3
Red Hat Security Advisory: .NET 5.0 on Red Hat Enterprise Linux security and bugfix update
- Record
RHSA-2021:1546- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2021:1547
7.3
Red Hat Security Advisory: .NET Core 3.1 on Red Hat Enterprise Linux security and bugfix update
- Record
RHSA-2021:1547- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVRHSA-2021:2036
7.3
Red Hat Security Advisory: dotnet5.0 security and bugfix update
- Record
RHSA-2021:2036- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2021:2037
7.3
Red Hat Security Advisory: dotnet3.1 security and bugfix update
- Record
RHSA-2021:2037- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBIT-dotnet-2021-31204 No score
.NET and Visual Studio Elevation of Privilege Vulnerability
.NET and Visual Studio Elevation of Privilege Vulnerability
- Record
BIT-dotnet-2021-31204- Updated
- 2026-11-02
OSVBIT-dotnet-sdk-2021-31204 No score
.NET and Visual Studio Elevation of Privilege Vulnerability
.NET and Visual Studio Elevation of Privilege Vulnerability
- Record
BIT-dotnet-sdk-2021-31204- Updated
- 2026-11-02
Affected products
- microsoft .net
- microsoft .net 5.0
- microsoft .net core 3.1
- microsoft .net core
- microsoft visual studio 2019 version 16.4 (includes 16.0 - 16.3)
- microsoft visual studio 2019 version 16.7 (includes 16.0 – 16.6)
- microsoft visual studio 2019 version 16.9 (includes 16.0 - 16.8)
- microsoft visual studio 2019 for mac version 8.9
- microsoft visual studio 2019
- fedoraproject fedora
Affected packages
| Package | Affected | Fixed |
|---|---|---|
dotnetBitnami |
5.0.0 up to 5.0.6 | 5.0.6 |
dotnet-sdkBitnami |
5.0.0 up to 5.0.6 | 5.0.6 |
rh-dotnet50-aspnetcore-runtime-5.0Red Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.6-1.el7_9 | 0:5.0.6-1.el7_9 |
rh-dotnet50-aspnetcore-targeting-pack-5.0Red Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.6-1.el7_9 | 0:5.0.6-1.el7_9 |
rh-dotnet50-dotnetRed Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.203-1.el7_9 | 0:5.0.203-1.el7_9 |
rh-dotnet50-dotnet-apphost-pack-5.0Red Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.6-1.el7_9 | 0:5.0.6-1.el7_9 |
rh-dotnet50-dotnet-debuginfoRed Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.203-1.el7_9 | 0:5.0.203-1.el7_9 |
rh-dotnet50-dotnet-hostRed Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.6-1.el7_9 | 0:5.0.6-1.el7_9 |
rh-dotnet50-dotnet-hostfxr-5.0Red Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.6-1.el7_9 | 0:5.0.6-1.el7_9 |
rh-dotnet50-dotnet-runtime-5.0Red Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.6-1.el7_9 | 0:5.0.6-1.el7_9 |
Show 50 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rh-dotnet50-dotnet-sdk-5.0Red Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.203-1.el7_9 | 0:5.0.203-1.el7_9 |
rh-dotnet50-dotnet-targeting-pack-5.0Red Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.6-1.el7_9 | 0:5.0.6-1.el7_9 |
rh-dotnet50-dotnet-templates-5.0Red Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.203-1.el7_9 | 0:5.0.203-1.el7_9 |
rh-dotnet50-netstandard-targeting-pack-2.1Red Hat:rhel_dotnet:5.0::el7 |
before 0:5.0.203-1.el7_9 | 0:5.0.203-1.el7_9 |
rh-dotnet31-aspnetcore-runtime-3.1Red Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.15-1.el7_9 | 0:3.1.15-1.el7_9 |
rh-dotnet31-aspnetcore-targeting-pack-3.1Red Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.15-1.el7_9 | 0:3.1.15-1.el7_9 |
rh-dotnet31-dotnetRed Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.115-1.el7_9 | 0:3.1.115-1.el7_9 |
rh-dotnet31-dotnet-apphost-pack-3.1Red Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.15-1.el7_9 | 0:3.1.15-1.el7_9 |
rh-dotnet31-dotnet-debuginfoRed Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.115-1.el7_9 | 0:3.1.115-1.el7_9 |
rh-dotnet31-dotnet-hostRed Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.15-1.el7_9 | 0:3.1.15-1.el7_9 |
rh-dotnet31-dotnet-hostfxr-3.1Red Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.15-1.el7_9 | 0:3.1.15-1.el7_9 |
rh-dotnet31-dotnet-runtime-3.1Red Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.15-1.el7_9 | 0:3.1.15-1.el7_9 |
rh-dotnet31-dotnet-sdk-3.1Red Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.115-1.el7_9 | 0:3.1.115-1.el7_9 |
rh-dotnet31-dotnet-targeting-pack-3.1Red Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.15-1.el7_9 | 0:3.1.15-1.el7_9 |
rh-dotnet31-dotnet-templates-3.1Red Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.115-1.el7_9 | 0:3.1.115-1.el7_9 |
rh-dotnet31-netstandard-targeting-pack-2.1Red Hat:rhel_dotnet:3.1::el7 |
before 0:3.1.115-1.el7_9 | 0:3.1.115-1.el7_9 |
aspnetcore-runtime-5.0Red Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
aspnetcore-targeting-pack-5.0Red Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnetRed Hat:enterprise_linux:8::appstream |
before 0:5.0.203-1.el8_4 | 0:5.0.203-1.el8_4 |
dotnet-apphost-pack-5.0Red Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnet-apphost-pack-5.0-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnet-hostRed Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnet-host-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnet-hostfxr-5.0Red Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnet-hostfxr-5.0-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnet-runtime-5.0Red Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnet-runtime-5.0-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnet-sdk-5.0Red Hat:enterprise_linux:8::appstream |
before 0:5.0.203-1.el8_4 | 0:5.0.203-1.el8_4 |
dotnet-sdk-5.0-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.0.203-1.el8_4 | 0:5.0.203-1.el8_4 |
dotnet-targeting-pack-5.0Red Hat:enterprise_linux:8::appstream |
before 0:5.0.6-1.el8_4 | 0:5.0.6-1.el8_4 |
dotnet-templates-5.0Red Hat:enterprise_linux:8::appstream |
before 0:5.0.203-1.el8_4 | 0:5.0.203-1.el8_4 |
dotnet5.0Red Hat:enterprise_linux:8::appstream |
before 0:5.0.203-1.el8_4 | 0:5.0.203-1.el8_4 |
dotnet5.0-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.0.203-1.el8_4 | 0:5.0.203-1.el8_4 |
dotnet5.0-debugsourceRed Hat:enterprise_linux:8::appstream |
before 0:5.0.203-1.el8_4 | 0:5.0.203-1.el8_4 |
netstandard-targeting-pack-2.1Red Hat:enterprise_linux:8::appstream |
before 0:5.0.203-1.el8_4 | 0:5.0.203-1.el8_4 |
aspnetcore-runtime-3.1Red Hat:enterprise_linux:8::appstream |
before 0:3.1.15-1.el8_4 | 0:3.1.15-1.el8_4 |
aspnetcore-targeting-pack-3.1Red Hat:enterprise_linux:8::appstream |
before 0:3.1.15-1.el8_4 | 0:3.1.15-1.el8_4 |
dotnet-apphost-pack-3.1Red Hat:enterprise_linux:8::appstream |
before 0:3.1.15-1.el8_4 | 0:3.1.15-1.el8_4 |
dotnet-apphost-pack-3.1-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:3.1.15-1.el8_4 | 0:3.1.15-1.el8_4 |
dotnet-hostfxr-3.1Red Hat:enterprise_linux:8::appstream |
before 0:3.1.15-1.el8_4 | 0:3.1.15-1.el8_4 |
dotnet-hostfxr-3.1-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:3.1.15-1.el8_4 | 0:3.1.15-1.el8_4 |
dotnet-runtime-3.1Red Hat:enterprise_linux:8::appstream |
before 0:3.1.15-1.el8_4 | 0:3.1.15-1.el8_4 |
dotnet-runtime-3.1-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:3.1.15-1.el8_4 | 0:3.1.15-1.el8_4 |
dotnet-sdk-3.1Red Hat:enterprise_linux:8::appstream |
before 0:3.1.115-1.el8_4 | 0:3.1.115-1.el8_4 |
dotnet-sdk-3.1-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:3.1.115-1.el8_4 | 0:3.1.115-1.el8_4 |
dotnet-targeting-pack-3.1Red Hat:enterprise_linux:8::appstream |
before 0:3.1.15-1.el8_4 | 0:3.1.15-1.el8_4 |
dotnet-templates-3.1Red Hat:enterprise_linux:8::appstream |
before 0:3.1.115-1.el8_4 | 0:3.1.115-1.el8_4 |
dotnet3.1Red Hat:enterprise_linux:8::appstream |
before 0:3.1.115-1.el8_4 | 0:3.1.115-1.el8_4 |
dotnet3.1-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:3.1.115-1.el8_4 | 0:3.1.115-1.el8_4 |
dotnet3.1-debugsourceRed Hat:enterprise_linux:8::appstream |
before 0:3.1.115-1.el8_4 | 0:3.1.115-1.el8_4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-31204 is a high vulnerability (CVSS 7.3) in Microsoft .net, published May 11, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.19%, the 68th percentile. Fixed in dotnet 5.0.6.
References
portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31204
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FVMWZPF4FR6JPFSNAIDIUDULHZJBVCW6
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6M7KL3KTHJVQNRA3CWFUTESQJARQEHSZ
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4F3VM3RMPE7PNNLLI3BPCSAXITQZCFCA
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZWF25Z3CZ6LYCOHZ7FPSFAQ426JUBUZ4
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UV4ITB3SUDGR23G7XALUVKFJMZERFUKF
Show 16 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LFXJPQUYUITJMV75YN3XIGE3KKN5GOCU
nvd.nist.gov/vuln/detail/CVE-2021-31204
access.redhat.com/errata/RHSA-2021:1546
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1956815
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_1546.json
access.redhat.com/security/cve/CVE-2021-31204
cve.org/CVERecord?id=CVE-2021-31204
github.com/dotnet/announcements/issues/185
msrc.microsoft.com/update-guide/vulnerability/CVE-2021-31204
access.redhat.com/errata/RHSA-2021:1547
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_1547.json
access.redhat.com/errata/RHSA-2021:2036
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_2036.json
access.redhat.com/errata/RHSA-2021:2037
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_2037.json