MediumGHSA-vh55-786g-wjwjBIT-dotnet-2022-34716BIT-dotnet-sdk-2022-34716BIT-powershell-2022-34716CVE-2022-34716

.NET Information Disclosure Vulnerability

Published 3 Feb 2024 · Updated 4 Sept 2025

Is your project on an affected System.Security.Cryptography.Xml?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<4.7.1
Fixed in
4.7.1
Update to the fixed version for your release line, for example:dotnet add package System.Security.Cryptography.Xml --version 4.7.1
Affected
>=5.0.0 <6.0.1
Fixed in
6.0.1
Update to the fixed version for your release line, for example:dotnet add package System.Security.Cryptography.Xml --version 6.0.1
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.win-x64 --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.win-x64 --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-x64 --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-x64 --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.win-x86 --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.win-x86 --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.osx-x64 --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.osx-x64 --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-x64 --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-x64 --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-arm64 --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-arm64 --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-arm --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-arm --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.win-arm64 --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.win-arm64 --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.win-arm --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.win-arm --version 6.0.8
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.osx-arm64 --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-arm64 --version 6.0.8
Affected
>=3.1.0 <3.1.28
Fixed in
3.1.28
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-arm --version 3.1.28
Affected
>=6.0.0 <6.0.8
Fixed in
6.0.8
Update to the fixed version for your release line, for example:dotnet add package Microsoft.AspNetCore.App.Runtime.linux-musl-arm --version 6.0.8

Details

Microsoft is releasing this security advisory to provide information about a vulnerability in .NET Core 3.1 and .NET 6.0. 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 Core 3.1 and .NET 6.0 that could lead to unauthorized access of privileged information.

<a name="affected-software"></a>Affected software

  • Any .NET 6.0 application running on .NET 6.0.7 or earlier.
  • Any .NET Core 3.1 applicaiton running on .NET Core 3.1.27 or earlier.

If your application uses the following package versions, ensure you update to the latest version of .NET.

<a name=".NET Core 3.1"></a>.NET Core 3.1

Package name | Affected version | Patched version ------------ | ---------------- | ------------------------- System.Security.Cryptography.Xml| <=4.7.0| 4.7.1 Microsoft.AspNetCore.App.Runtime.win-x64| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.linux-x64| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.win-x86| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.osx-x64| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.linux-musl-x64| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.linux-arm64| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.linux-arm| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.win-arm64| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.win-arm| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.linux-musl-arm64| >=3.1.0, 3.1.27| 3.1.28 Microsoft.AspNetCore.App.Runtime.linux-musl-arm| >=3.1.0, 3.1.27| 3.1.28

<a name=".NET 6"></a>.NET 6

Package name | Affected version | Patched version ------------ | ---------------- | ------------------------- System.Security.Cryptography.Xml| >=5.0.0, 6.0.0| 6.0.1 Microsoft.AspNetCore.App.Runtime.win-x64| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.linux-x64| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.win-x86| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.osx-x64| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.linux-musl-x64| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.linux-arm64| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.linux-arm| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.win-arm64| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.win-arm| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.osx-arm64| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.linux-musl-arm64| >=6.0.0, 6.0.7| 6.0.8 Microsoft.AspNetCore.App.Runtime.linux-musl-arm| >=6.0.0, 6.0.7| 6.0.8

Patches

  • If you're using .NET 6.0, you should download and install Runtime 6.0.8 or SDK 6.0.108 (for Visual Studio 2022 v17.1) from https://dotnet.microsoft.com/download/dotnet-core/6.0.
  • If you're using .NET Core 3.1, you should download and install Runtime 3.1.28 (for Visual Studio 2019 v16.9) from https://dotnet.microsoft.com/download/dotnet-core/3.1.

Other

Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/232 An Issue for this can be found at https://github.com/dotnet/aspnetcore/issues/43166 MSRC details for this can be found at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-34716

Is GHSA-vh55-786g-wjwj in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected System.Security.Cryptography.Xml, and gives you the command that fixes it.

More advisories for System.Security.Cryptography.Xml

  • HighCVE-2026-96959Microsoft Security Advisory CVE-2026-96959 - .NET and Visual Studio Denial of Service Vulnerability · 13 Oct 2026
  • HighCVE-2026-96222Microsoft Security Advisory CVE-2026-96222 - .NET Spoofing Vulnerability · 13 Oct 2026
  • HighCVE-2026-96960Microsoft Security Advisory CVE-2026-96960 - .NET and Visual Studio Denial of Service Vulnerability · 13 Oct 2026
  • HighCVE-2026-96958Microsoft Security Advisory CVE-2026-96958 - .NET and Visual Studio Denial of Service Vulnerability · 13 Oct 2026
  • HighCVE-2026-32203Microsoft Security Advisory CVE-2026-32203 – .NET and Visual Studio Denial of Service Vulnerability · 28 Jul 2026
  • HighCVE-2026-50527Microsoft Security Advisory CVE-2026-50527 – .NET Denial of Service Vulnerability · 21 Jul 2026
All 15 advisories for System.Security.Cryptography.Xml

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.