Skip to content
Fencer Vulns
high 7.8

CVE-2021-31204 json

.NET and Visual Studio Elevation of Privilege Vulnerability

published 2021-05-11 5 y ago modified 2026-10-07 32 d ago also BIT-dotnet-2021-31204 , BIT-dotnet-sdk-2021-31204 , EUVD-2021-18117

cvss
7.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.2%
EPSS 1.2% chance of exploitation in 30 days, percentile 68%
public exploits
0
none known

Summary

.NET and Visual Studio Elevation of Privilege Vulnerability

Patch / fix

  • bitnami dotnet 5.0.6
  • bitnami dotnet-sdk 5.0.6
  • Microsoft .NET Core 3.1 3.1.15-servicing.21214.3
  • Microsoft .NET 5.0 5.0.6-servicing.21220.11
  • dotnet5.0 RHEL 8 5.0.203-1.el8_4
  • dotnet RHEL 8 5.0.203-1.el8_4
  • dotnet-host RHEL 8 5.0.6-1.el8_4
  • dotnet-sdk-5.0 RHEL 8 5.0.203-1.el8_4
  • dotnet-hostfxr-5.0 RHEL 8 5.0.6-1.el8_4
  • dotnet-runtime-5.0 RHEL 8 5.0.6-1.el8_4
  • dotnet-templates-5.0 RHEL 8 5.0.203-1.el8_4
  • aspnetcore-runtime-5.0 RHEL 8 5.0.6-1.el8_4

red hat advisories RHSA-2021:2036RHSA-2021:2037RHSA-2021:1547RHSA-2021:1546

  • dotnet-sdk Arch Linux 5.0.6.sdk203-1
  • dotnet-runtime Arch Linux 5.0.6.sdk203-1

arch linux advisories AVG-1944

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-31204 updated cvss 7.3

dotnet: .NET Core single-file application privilege escalation

  • Red Hat .NET Core on Red Hat Enterprise Linux ComputeNode (v. 7) rh-dotnet31-dotnet 3.1.115-1.el7_9, rh-dotnet50-dotnet 5.0.203-1.el7_9, rh-dotnet50-dotnet-host 5.0.6-1.el7_9, rh-dotnet31-dotnet-host 3.1.15-1.el7_9, rh-dotnet31-dotnet-sdk-3.1 3.1.115-1.el7_9, rh-dotnet50-dotnet-sdk-5.0 5.0.203-1.el7_9, +16 more Red Hat .NET Core on Red Hat Enterprise Linux Server (v. 7) rh-dotnet31-dotnet 3.1.115-1.el7_9, rh-dotnet50-dotnet 5.0.203-1.el7_9, rh-dotnet50-dotnet-host 5.0.6-1.el7_9, rh-dotnet31-dotnet-host 3.1.15-1.el7_9, rh-dotnet31-dotnet-sdk-3.1 3.1.115-1.el7_9, rh-dotnet50-dotnet-sdk-5.0 5.0.203-1.el7_9, +16 more Red Hat .NET Core on Red Hat Enterprise Linux Workstation (v. 7) rh-dotnet31-dotnet 3.1.115-1.el7_9, rh-dotnet50-dotnet 5.0.203-1.el7_9, rh-dotnet50-dotnet-host 5.0.6-1.el7_9, rh-dotnet31-dotnet-host 3.1.15-1.el7_9, rh-dotnet31-dotnet-sdk-3.1 3.1.115-1.el7_9, rh-dotnet50-dotnet-sdk-5.0 5.0.203-1.el7_9, +16 more
    fixed: vendor fix RHSA-2021:1547
  • Red Hat Enterprise Linux AppStream (v. 8) dotnet 5.0.203-1.el8_4, dotnet-host 5.0.6-1.el8_4, dotnet3.1 3.1.115-1.el8_4, dotnet5.0 5.0.203-1.el8_4, dotnet-sdk-3.1 3.1.115-1.el8_4, dotnet-sdk-5.0 5.0.203-1.el8_4, +15 more
    fixed: vendor fix RHSA-2021:2037
  • Red Hat .NET Core 2.1 on Red Hat Enterprise Linux rh-dotnet21, rh-dotnet21-runtime Red Hat Enterprise Linux 8 dotnet, dotnet-host, dotnet-sdk-2.1, dotnet-runtime-2.1, dotnet-sdk-2.1.5xx, dotnet-host-fxr-2.1
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
17 mo ago

Exploit prediction

1.19% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.3 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
CNA 3.1 7.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CNA 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 4.6 AV:L/AC:L/Au:N/C:P/I:P/A:P
OSV 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami dotnet
>=5.0.0, <5.0.6
5.0.6
bitnami dotnet-sdk
>=5.0.0, <5.0.6
5.0.6

Affected products

  • Microsoft .NET Core 3.1
  • Microsoft .NET 5.0
  • Microsoft Microsoft Visual Studio 2019 version 16.9 (includes 16.0 - 16.8)
  • Microsoft Microsoft Visual Studio 2019 version 16.4 (includes 16.0 - 16.3)
  • Microsoft Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6)
  • Microsoft Visual Studio 2019 for Mac version 8.9

Classification

Weakness
  • CWE-269 Improper Privilege Management

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.