CVE-2020-1147: .NET Framework, SharePoint Server, and Visual Studio Remote Code Execution Vulnerability

CVE-2020-1147 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2022-05-24

A remote code execution vulnerability exists in Microsoft .NET Framework, SharePoint, and Visual Studio due to improper validation of source markup in XML file input. An attacker can exploit this by providing malicious XML content, leading to code execution during the deserialization process.

Technologies: Microsoft .NET Framework, Microsoft SharePoint, Microsoft Visual Studio, Microsoft.NETCore.App (NuGet), Microsoft.NetCore.App.Runtime.linux-arm (NuGet), Microsoft.NetCore.App.Runtime.linux-arm64 (NuGet), Microsoft.NetCore.App.Runtime.linux-musl-arm64 (NuGet), Microsoft.NetCore.App.Runtime.linux-musl-x64 (NuGet), Microsoft.NetCore.App.Runtime.linux-x64 (NuGet), Microsoft.NetCore.App.Runtime.osx-x64 (NuGet), Microsoft.NETCore.App.Runtime.rhel.6-x64 (NuGet), Microsoft.NetCore.App.Runtime.win-arm (NuGet), Microsoft.NetCore.App.Runtime.win-arm64 (NuGet), Microsoft.NetCore.App.Runtime.win-x64 (NuGet), Microsoft.NetCore.App.Runtime.win-x86 (NuGet). Vendors: Microsoft, NuGet.

Quick answers

Is CVE-2020-1147 exploited in the wild?
Yes. CVE-2020-1147 is known to be exploited in the wild, first recorded on 3 November 2021. Treat it as urgent.
How severe is CVE-2020-1147?
Critical severity, with a CVSS score of 3.1, published 24 May 2022.
Which products and versions are affected?
Microsoft.NETCore.App (NuGet) ECOSYSTEM:introduced=2.1.0,fixed=2.1.20; Microsoft.NetCore.App.Runtime.linux-arm (NuGet) ECOSYSTEM:introduced=3.1.0,fixed=3.1.6; Microsoft.NetCore.App.Runtime.linux-arm64 (NuGet) ECOSYSTEM:introduced=3.1.0,fixed=3.1.6; Microsoft.NetCore.App.Runtime.linux-musl-arm64 (NuGet) ECOSYSTEM:introduced=3.1.0,fixed=3.1.6; and 8 more.
Is there a fix for CVE-2020-1147?
Yes. Microsoft.NETCore.App (NuGet): upgrade to 2.1.20 or later; Microsoft.NetCore.App.Runtime.linux-arm (NuGet): upgrade to 3.1.6 or later; Microsoft.NetCore.App.Runtime.linux-arm64 (NuGet): upgrade to 3.1.6 or later; Microsoft.NetCore.App.Runtime.linux-musl-arm64 (NuGet): upgrade to 3.1.6 or later; Microsoft.NetCore.App.Runtime.linux-musl-x64 (NuGet): upgrade to 3.1.6 or later; Microsoft.NetCore.App.Runtime.linux-x64 (NuGet): upgrade to 3.1.6 or later; Microsoft.NetCore.App.Runtime.osx-x64 (NuGet): upgrade to 3.1.6 or later; Microsoft.NETCore.App.Runtime.rhel.6-x64 (NuGet): upgrade to 3.1.6 or later; Microsoft.NetCore.App.Runtime.win-arm (NuGet): upgrade to 3.1.6 or later; Microsoft.NetCore.App.Runtime.win-arm64 (NuGet): upgrade to 3.1.6 or later; Microsoft.NetCore.App.Runtime.win-x64 (NuGet): upgrade to 3.1.6 or later; Microsoft.NetCore.App.Runtime.win-x86 (NuGet): upgrade to 3.1.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2020-1147 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2020-1147?
Check whether you run Microsoft .NET Framework, Microsoft SharePoint, Microsoft Visual Studio or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Microsoft.NETCore.App (NuGet): upgrade to 2.1.20 or later
    dotnet add package Microsoft.NETCore.App --version 2.1.20
  • Microsoft.NetCore.App.Runtime.linux-arm (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.linux-arm --version 3.1.6
  • Microsoft.NetCore.App.Runtime.linux-arm64 (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.linux-arm64 --version 3.1.6
  • Microsoft.NetCore.App.Runtime.linux-musl-arm64 (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.linux-musl-arm64 --version 3.1.6
  • Microsoft.NetCore.App.Runtime.linux-musl-x64 (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.linux-musl-x64 --version 3.1.6
  • Microsoft.NetCore.App.Runtime.linux-x64 (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.linux-x64 --version 3.1.6
  • Microsoft.NetCore.App.Runtime.osx-x64 (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.osx-x64 --version 3.1.6
  • Microsoft.NETCore.App.Runtime.rhel.6-x64 (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NETCore.App.Runtime.rhel.6-x64 --version 3.1.6
  • Microsoft.NetCore.App.Runtime.win-arm (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.win-arm --version 3.1.6
  • Microsoft.NetCore.App.Runtime.win-arm64 (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.win-arm64 --version 3.1.6
  • Microsoft.NetCore.App.Runtime.win-x64 (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.win-x64 --version 3.1.6
  • Microsoft.NetCore.App.Runtime.win-x86 (NuGet): upgrade to 3.1.6 or later
    dotnet add package Microsoft.NetCore.App.Runtime.win-x86 --version 3.1.6

Affected products

  • Microsoft .NET Framework
  • Microsoft SharePoint
  • Microsoft Visual Studio

Identifiers

  • CVE-2020-1147
  • GHSA-g5vf-38cp-4px9

Timeline

  • 2020-07-14: advisory: MSRC security guidance published.
  • 2021-11-03: kev added: Added to CISA Known Exploited Vulnerabilities Catalog.
  • 2021-11-03: disclosed: Publicly disclosed date per advisory metadata.

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.