Every CVE Search/ Get API key

CVE-2021-34532

ASP.NET Core and Visual Studio Information Disclosure Vulnerability

5.5 MediumFix available

ASP.NET Core and Visual Studio Information Disclosure Vulnerability

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

1.22%Up 0.8 points since Aug 13, 2021
90%50%10%1%

What each source reports

CVE List Score used 5.5

ASP.NET Core and Visual Studio Information Disclosure Vulnerability

ASP.NET Core and Visual Studio Information Disclosure Vulnerability

Record
CVE-2021-34532
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C
Updated
2026-11-02
EUVDEUVD-2021-1835 5.5

ASP.NET Core and Visual Studio Information Disclosure Vulnerability

Record
EUVD-2021-1835
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C
Updated
2026-11-03
GitHub AdvisoriesGHSA-q7cg-43mg-qp69 5.5

ASP.NET Core Information Disclosure Vulnerability

Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 5.0, .NET Core 3.1 and .NET Core 2.1. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.

An information disclosure vulnerability exists in .NET 5.0, .NET Core 3.1 and .NET Core 2.1 where a JWT token is logged if it cannot be parsed.

Patches

<a name="updating-2.1"></a> Updating .NET Core 2.1 on .NET Framework

If you are running .NET Core 2.1 on .NET Framework you need to check your projects for dependencies and update them accordingly.

Direct dependencies

Direct dependencies are discoverable by examining your csproj file. They can be fixed by editing the project file or using NuGet to update the dependency.

Transitive dependencies

Transitive dependencies occur when you add a package to your project that in turn relies on another package. For example, if Contoso publishes a package Contoso.Utility which, in turn, depends on Contoso.Internals and you add the Contoso.Utility package to your project now your project has a direct dependency on Contoso.Utility and, because Contoso.Utility depends 'Contoso.Internals', your application gains a transitive dependency on the Contoso.Internals package.

Transitive dependencies are reviewable in two ways:

  • In the Visual Studio Solution Explorer window, which supports searching.
  • By examining the project.assets.json file contained in the obj directory of your project for csproj based projects

The project.assets.json files are the authoritative list of all packages used by your project, containing both direct and transitive dependencies.

There are two ways to view transitive dependencies. You can either use Visual Studio’s Solution Explorer, or you can review the project.assets.json file).

<a name="vs-solution-explorer"></a>Using Visual Studio Solution Explorer

To use Solution Explorer, open the project in Visual Studio, and then press Ctrl+; to activate the search in Solution Explorer. Search for the vulnerable package and make a note of the version numbers of any results you find.

For example, search for Microsoft.AspNetCore.Authentication.JwtBearer and update the package to the latest version

<a name="project-assets-json"></a> Manually reviewing project.assets.json

Open the project.assets.json file from your project’s obj directory in your editor. We suggest you use an editor that understands JSON and allows you to collapse and expand nodes to review this file. Visual Studio and Visual Studio Code provide JSON friendly editing.

Search the project.assets.json file for the vulnerable package, using the format packagename/ for each of the package names from the preceding table. If you find the assembly name in your search:

For example, a search result that shows…

Record
GHSA-q7cg-43mg-qp69
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
NVD 5.5

ASP.NET Core and Visual Studio Information Disclosure Vulnerability

Record
CVE-2021-34532
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.0
2.1 LowAV:L/AC:L/Au:N/C:P/I:N/A:N
Updated
2026-11-03
OSV 5.5

ASP.NET Core and Visual Studio Information Disclosure Vulnerability

Record
CVE-2021-34532
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-04
OSVGHSA-q7cg-43mg-qp69 5.5

ASP.NET Core Information Disclosure Vulnerability

Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 5.0, .NET Core 3.1 and .NET Core 2.1. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.

An information disclosure vulnerability exists in .NET 5.0, .NET Core 3.1 and .NET Core 2.1 where a JWT token is logged if it cannot be parsed.

Patches

<a name="updating-2.1"></a> Updating .NET Core 2.1 on .NET Framework

If you are running .NET Core 2.1 on .NET Framework you need to check your projects for dependencies and update them accordingly.

Direct dependencies

Direct dependencies are discoverable by examining your csproj file. They can be fixed by editing the project file or using NuGet to update the dependency.

Transitive dependencies

Transitive dependencies occur when you add a package to your project that in turn relies on another package. For example, if Contoso publishes a package Contoso.Utility which, in turn, depends on Contoso.Internals and you add the Contoso.Utility package to your project now your project has a direct dependency on Contoso.Utility and, because Contoso.Utility depends 'Contoso.Internals', your application gains a transitive dependency on the Contoso.Internals package.

Transitive dependencies are reviewable in two ways:

  • In the Visual Studio Solution Explorer window, which supports searching.
  • By examining the project.assets.json file contained in the obj directory of your project for csproj based projects

The project.assets.json files are the authoritative list of all packages used by your project, containing both direct and transitive dependencies.

There are two ways to view transitive dependencies. You can either use Visual Studio’s Solution Explorer, or you can review the project.assets.json file).

<a name="vs-solution-explorer"></a>Using Visual Studio Solution Explorer

To use Solution Explorer, open the project in Visual Studio, and then press Ctrl+; to activate the search in Solution Explorer. Search for the vulnerable package and make a note of the version numbers of any results you find.

For example, search for Microsoft.AspNetCore.Authentication.JwtBearer and update the package to the latest version

<a name="project-assets-json"></a> Manually reviewing project.assets.json

Open the project.assets.json file from your project’s obj directory in your editor. We suggest you use an editor that understands JSON and allows you to collapse and expand nodes to review this file. Visual Studio and Visual Studio Code provide JSON friendly editing.

Search the project.assets.json file for the vulnerable package, using the format packagename/ for each of the package names from the preceding table. If you find the assembly name in your search:

For example, a search result that shows…

Record
GHSA-q7cg-43mg-qp69
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
Show 5 moreShow less
OSVRHSA-2021:3142 7.5

Red Hat Security Advisory: .NET Core 3.1 security and bugfix update

Record
RHSA-2021:3142
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHSA-2021:3143 7.5

Red Hat Security Advisory: .NET Core 3.1 on RHEL 7 security and bugfix update

Record
RHSA-2021:3143
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHSA-2021:3147 7.5

Red Hat Security Advisory: .NET 5.0 on RHEL 7 security and bugfix update

Record
RHSA-2021:3147
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHSA-2021:3148 7.5

Red Hat Security Advisory: .NET 5.0 security and bugfix update

Record
RHSA-2021:3148
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVBIT-aspnet-core-2021-34532 No score

ASP.NET Core and Visual Studio Information Disclosure Vulnerability

ASP.NET Core and Visual Studio Information Disclosure Vulnerability

Record
BIT-aspnet-core-2021-34532
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
Microsoft.AspNetCore.Authentication.JwtBearer
NuGet
3.0.0 up to 3.1.18
3.1.18
Microsoft.AspNetCore.Authentication.JwtBearer
NuGet
5.0.0 up to 5.0.9
5.0.9
Microsoft.AspNetCore.Authentication.JwtBearer
NuGet
2.1.0 up to 2.1.29
2.1.29
aspnet-core
Bitnami
2.1.0 up to 2.1.3, 3.1.0 up to 3.1.18, 5.0.0 up to 5.0.9
2.1.33.1.185.0.9
Microsoft.AspNetCore.Authentication.JwtBearer
NuGet
2.1.0 up to 2.1.29, plus listed versions
2.1.12.1.2
2.1.29
Microsoft.AspNetCore.Authentication.JwtBearer
NuGet
3.0.0 up to 3.1.18, plus listed versions
3.0.23.0.33.1.03.1.13.1.10
Show 15 moreShow less
3.1.113.1.123.1.133.1.143.1.153.1.163.1.173.1.23.1.33.1.43.1.53.1.63.1.73.1.83.1.9
3.1.18
Microsoft.AspNetCore.Authentication.JwtBearer
NuGet
5.0.0 up to 5.0.9, plus listed versions
5.0.15.0.25.0.35.0.45.0.55.0.65.0.75.0.8
5.0.9
aspnetcore-runtime-3.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.18-1.el8_4
0:3.1.18-1.el8_4
aspnetcore-targeting-pack-3.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.18-1.el8_4
0:3.1.18-1.el8_4
dotnet-apphost-pack-3.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.18-1.el8_4
0:3.1.18-1.el8_4
Show 55 moreShow less
Affected packages
PackageAffectedFixed
dotnet-apphost-pack-3.1-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.18-1.el8_4
0:3.1.18-1.el8_4
dotnet-hostfxr-3.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.18-1.el8_4
0:3.1.18-1.el8_4
dotnet-hostfxr-3.1-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.18-1.el8_4
0:3.1.18-1.el8_4
dotnet-runtime-3.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.18-1.el8_4
0:3.1.18-1.el8_4
dotnet-runtime-3.1-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.18-1.el8_4
0:3.1.18-1.el8_4
dotnet-sdk-3.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.118-1.el8_4
0:3.1.118-1.el8_4
dotnet-sdk-3.1-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.118-1.el8_4
0:3.1.118-1.el8_4
dotnet-targeting-pack-3.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.18-1.el8_4
0:3.1.18-1.el8_4
dotnet-templates-3.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.118-1.el8_4
0:3.1.118-1.el8_4
dotnet3.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.118-1.el8_4
0:3.1.118-1.el8_4
dotnet3.1-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.118-1.el8_4
0:3.1.118-1.el8_4
dotnet3.1-debugsource
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:3.1.118-1.el8_4
0:3.1.118-1.el8_4
rh-dotnet31-aspnetcore-runtime-3.1
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.18-1.el7_9
0:3.1.18-1.el7_9
rh-dotnet31-aspnetcore-targeting-pack-3.1
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.18-1.el7_9
0:3.1.18-1.el7_9
rh-dotnet31-dotnet
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.118-1.el7_9
0:3.1.118-1.el7_9
rh-dotnet31-dotnet-apphost-pack-3.1
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.18-1.el7_9
0:3.1.18-1.el7_9
rh-dotnet31-dotnet-debuginfo
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.118-1.el7_9
0:3.1.118-1.el7_9
rh-dotnet31-dotnet-host
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.18-1.el7_9
0:3.1.18-1.el7_9
rh-dotnet31-dotnet-hostfxr-3.1
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.18-1.el7_9
0:3.1.18-1.el7_9
rh-dotnet31-dotnet-runtime-3.1
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.18-1.el7_9
0:3.1.18-1.el7_9
rh-dotnet31-dotnet-sdk-3.1
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.118-1.el7_9
0:3.1.118-1.el7_9
rh-dotnet31-dotnet-targeting-pack-3.1
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.18-1.el7_9
0:3.1.18-1.el7_9
rh-dotnet31-dotnet-templates-3.1
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.118-1.el7_9
0:3.1.118-1.el7_9
rh-dotnet31-netstandard-targeting-pack-2.1
Red Hat:rhel_dotnet:3.1::el7
From an advisory covering 3 CVEs
before 0:3.1.118-1.el7_9
0:3.1.118-1.el7_9
rh-dotnet50-aspnetcore-runtime-5.0
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.9-1.el7_9
0:5.0.9-1.el7_9
rh-dotnet50-aspnetcore-targeting-pack-5.0
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.9-1.el7_9
0:5.0.9-1.el7_9
rh-dotnet50-dotnet
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.206-1.el7_9
0:5.0.206-1.el7_9
rh-dotnet50-dotnet-apphost-pack-5.0
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.9-1.el7_9
0:5.0.9-1.el7_9
rh-dotnet50-dotnet-debuginfo
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.206-1.el7_9
0:5.0.206-1.el7_9
rh-dotnet50-dotnet-host
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.9-1.el7_9
0:5.0.9-1.el7_9
rh-dotnet50-dotnet-hostfxr-5.0
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.9-1.el7_9
0:5.0.9-1.el7_9
rh-dotnet50-dotnet-runtime-5.0
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.9-1.el7_9
0:5.0.9-1.el7_9
rh-dotnet50-dotnet-sdk-5.0
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.206-1.el7_9
0:5.0.206-1.el7_9
rh-dotnet50-dotnet-targeting-pack-5.0
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.9-1.el7_9
0:5.0.9-1.el7_9
rh-dotnet50-dotnet-templates-5.0
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.206-1.el7_9
0:5.0.206-1.el7_9
rh-dotnet50-netstandard-targeting-pack-2.1
Red Hat:rhel_dotnet:5.0::el7
From an advisory covering 3 CVEs
before 0:5.0.206-1.el7_9
0:5.0.206-1.el7_9
aspnetcore-runtime-5.0
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
aspnetcore-targeting-pack-5.0
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.206-1.el8_4
0:5.0.206-1.el8_4
dotnet-apphost-pack-5.0
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet-apphost-pack-5.0-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet-host
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet-host-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet-hostfxr-5.0
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet-hostfxr-5.0-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet-runtime-5.0
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet-runtime-5.0-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet-sdk-5.0
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.206-1.el8_4
0:5.0.206-1.el8_4
dotnet-sdk-5.0-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.206-1.el8_4
0:5.0.206-1.el8_4
dotnet-targeting-pack-5.0
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.9-1.el8_4
0:5.0.9-1.el8_4
dotnet-templates-5.0
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.206-1.el8_4
0:5.0.206-1.el8_4
dotnet5.0
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.206-1.el8_4
0:5.0.206-1.el8_4
dotnet5.0-debuginfo
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.206-1.el8_4
0:5.0.206-1.el8_4
dotnet5.0-debugsource
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.206-1.el8_4
0:5.0.206-1.el8_4
netstandard-targeting-pack-2.1
Red Hat:enterprise_linux:8::appstream
From an advisory covering 3 CVEs
before 0:5.0.206-1.el8_4
0:5.0.206-1.el8_4

History

History
RecordedChangedSources
affected
factsEUVD, NVD, OSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-34532 is a medium vulnerability (CVSS 5.5) in Microsoft Asp.net Core, published August 12, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.22%, the 68th percentile. Fixed in Microsoft.AspNetCore.Authentication.JwtBearer 3.1.18.

References

Show 25 moreShow less
This page doesn't list everything

Left out here: the rest of 2 source descriptions. The JSON record has them.

MoveEnter Open