CVE-2020-0606: Microsoft.WindowsDesktop.App.Ref Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-r4mw-gxf7-vxr9
CVSS 8.8
CWE-20
Published
Advisory Summary

CVE-2020-0606 is a HIGH (CVSS 8.8) remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Microsoft.WindowsDesktop.App.Ref libraries in the NuGet ecosystem. The issue involves remote code execution in microsoft.windowsdesktop.app.ref. Remediation is available by upgrading affected packages to version 3.0.2, 3.1.1, 3.1.11.

CVE-2020-0606 at a Glance

CVE Identifier CVE-2020-0606
GHSA Identifier GHSA-r4mw-gxf7-vxr9
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Microsoft.WindowsDesktop.App.Ref
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2020-0606

To remediate this vulnerability, upgrade all affected Microsoft.WindowsDesktop.App.Ref dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Microsoft.WindowsDesktop.App.Ref fixed: 3.0.2
Upgrade Microsoft.WindowsDesktop.App.Ref to 3.0.2
Microsoft.WindowsDesktop.App.Ref fixed: 3.1.1
Upgrade Microsoft.WindowsDesktop.App.Ref to 3.1.1
Microsoft.WindowsDesktop.App.Runtime.win-x86 fixed: 3.0.2
Upgrade Microsoft.WindowsDesktop.App.Runtime.win-x86 to 3.0.2
Microsoft.WindowsDesktop.App.Runtime.win-x86 fixed: 3.1.11
Upgrade Microsoft.WindowsDesktop.App.Runtime.win-x86 to 3.1.11
Microsoft.WindowsDesktop.App.Runtime.win-x64 fixed: 3.0.2
Upgrade Microsoft.WindowsDesktop.App.Runtime.win-x64 to 3.0.2
Microsoft.WindowsDesktop.App.Runtime.win-x64 fixed: 3.1.11
Upgrade Microsoft.WindowsDesktop.App.Runtime.win-x64 to 3.1.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for Microsoft.WindowsDesktop.App.Ref

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-0606, inspect your project dependencies for Microsoft.WindowsDesktop.App.Ref:

inspect dependencies for Microsoft.WindowsDesktop.App.Ref

Analyze the terminal output to locate any version of Microsoft.WindowsDesktop.App.Ref in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Microsoft.WindowsDesktop.App.Ref, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A remote code execution vulnerability exists in .NET software when the software fails to check the source markup of a file.An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user, aka '.NET Framework Remote Code Execution Vulnerability'. This CVE ID is unique from CVE-2020-0605.

CVE-2020-0606 Affected Microsoft.WindowsDesktop.App.Ref Versions

6 component(s)
Fixed Versions:
3.0.23.1.13.1.11
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.WindowsDesktop.App.Ref
NuGet
≥ 3.0.1
< 3.0.2
All 1 versions
3.0.1
3.0.2
Microsoft.WindowsDesktop.App.Ref
NuGet
≥ 3.1.0
< 3.1.1
All 1 versions
3.1.0
3.1.1
Microsoft.WindowsDesktop.App.Runtime.win-x86
NuGet
≥ 3.0.0
< 3.0.2
3.0.2
Microsoft.WindowsDesktop.App.Runtime.win-x86
NuGet
≥ 3.1.0
< 3.1.11
3.1.11
Microsoft.WindowsDesktop.App.Runtime.win-x64
NuGet
≥ 3.0.0
< 3.0.2
3.0.2
Microsoft.WindowsDesktop.App.Runtime.win-x64
NuGet
≥ 3.1.0
< 3.1.11
3.1.11

References

Frequently Asked Questions

What is CVE-2020-0606?
CVE-2020-0606 is a security vulnerability in Microsoft.WindowsDesktop.App.Ref involving Remote code execution in Microsoft.WindowsDesktop.App.Ref under CWE-20: Improper Input Validation.
Which Microsoft.WindowsDesktop.App.Ref versions are affected?
Affected versions include releases prior to 3.0.2, 3.1.1, 3.1.11 across affected packages: Microsoft.WindowsDesktop.App.Ref, Microsoft.WindowsDesktop.App.Runtime.win-x86, Microsoft.WindowsDesktop.App.Runtime.win-x64.
What version fixes CVE-2020-0606?
Upgrading to 3.0.2, 3.1.1, 3.1.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.WindowsDesktop.App.Ref affected?
Yes, Microsoft.WindowsDesktop.App.Ref is affected in releases prior to 3.0.2, 3.1.1. Upgrade your dependency to 3.0.2, 3.1.1 or later.
Is Microsoft.WindowsDesktop.App.Runtime.win-x86 affected?
Yes, Microsoft.WindowsDesktop.App.Runtime.win-x86 is affected in releases prior to 3.0.2, 3.1.11. Upgrade your dependency to 3.0.2, 3.1.11 or later.
What is the CVSS score of CVE-2020-0606?
CVE-2020-0606 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2020-0606?
CVE-2020-0606 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check NuGet dependencies for CVE-2020-0606?
Run the dependency tree command: 'inspect dependencies for Microsoft.WindowsDesktop.App.Ref'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r4mw-gxf7-vxr9",
  "modified" : "2022-07-28T22:08:12Z",
  "published" : "2022-05-24T17:06:16Z",
  "aliases" : [ "CVE-2020-0606" ],
  "summary" : "Remote code execution in Microsoft.WindowsDesktop.App.Ref",
  "details" : "A remote code execution vulnerability exists in .NET software when the software fails to check the source markup of a file.An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user, aka '.NET Framework Remote Code Execution Vulnerability'. This CVE ID is unique from CVE-2020-0605.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.WindowsDesktop.App.Ref"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.1"
      }, {
        "fixed" : "3.0.2"
      } ]
    } ],
    "versions" : [ "3.0.1" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.WindowsDesktop.App.Ref"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ],
    "versions" : [ "3.1.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.WindowsDesktop.App.Runtime.win-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.WindowsDesktop.App.Runtime.win-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.WindowsDesktop.App.Runtime.win-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.WindowsDesktop.App.Runtime.win-x64"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.1.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-0606"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dotnet/announcements/issues/149"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/issues/302"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-0606"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-28T22:08:12Z",
    "nvd_published_at" : "2020-01-14T23:15:00Z"
  }
}