CVE-2019-0657: Microsoft.NETCore.App Improper Input Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-x5qj-9vmx-7g6g
CVSS 5.9
CWE-20
Published
Advisory Summary

CVE-2019-0657 is a MODERATE (CVSS 5.9) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Microsoft.NETCore.App libraries in the NuGet ecosystem. The issue involves improper input validation in .net framework api's. Remediation is available by upgrading affected packages to version 2.2.2, 2.1.8, 4.3.2.

CVE-2019-0657 at a Glance

CVE Identifier CVE-2019-0657
GHSA Identifier GHSA-x5qj-9vmx-7g6g
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-20: Improper Input Validation
Affected Product Microsoft.NETCore.App
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

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

How to Fix CVE-2019-0657

To remediate this vulnerability, upgrade all affected Microsoft.NETCore.App 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.NETCore.App fixed: 2.2.2
Upgrade Microsoft.NETCore.App to 2.2.2
Microsoft.NETCore.App fixed: 2.1.8
Upgrade Microsoft.NETCore.App to 2.1.8
System.Private.Uri fixed: 4.3.2
Upgrade System.Private.Uri to 4.3.2
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.NETCore.App

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-0657, inspect your project dependencies for Microsoft.NETCore.App:

inspect dependencies for Microsoft.NETCore.App

Analyze the terminal output to locate any version of Microsoft.NETCore.App in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.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.NETCore.App, 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 vulnerability exists in certain .Net Framework API's and Visual Studio in the way they parse URL's, aka '.NET Framework and Visual Studio Spoofing Vulnerability'.

CVE-2019-0657 Affected Microsoft.NETCore.App Versions

3 component(s)
Fixed Versions:
2.2.22.1.84.3.2
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.NETCore.App
NuGet
≥ 2.2.0
< 2.2.2
2.2.2
Microsoft.NETCore.App
NuGet
≥ 2.1.0
< 2.1.8
2.1.8
System.Private.Uri
NuGet
≥ 4.3.0
< 4.3.2
4.3.2

References

Frequently Asked Questions

What is CVE-2019-0657?
CVE-2019-0657 is a security vulnerability in Microsoft.NETCore.App involving Improper Input Validation in .Net Framework API's under CWE-20: Improper Input Validation.
Which Microsoft.NETCore.App versions are affected?
Affected versions include releases prior to 2.2.2, 2.1.8, 4.3.2 across affected packages: Microsoft.NETCore.App, System.Private.Uri.
What version fixes CVE-2019-0657?
Upgrading to 2.2.2, 2.1.8, 4.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.NETCore.App affected?
Yes, Microsoft.NETCore.App is affected in releases prior to 2.2.2, 2.1.8. Upgrade your dependency to 2.2.2, 2.1.8 or later.
Is System.Private.Uri affected?
Yes, System.Private.Uri is affected in releases prior to 4.3.2. Upgrade your dependency to 4.3.2 or later.
What is the CVSS score of CVE-2019-0657?
CVE-2019-0657 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2019-0657?
CVE-2019-0657 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-2019-0657?
Run the dependency tree command: 'inspect dependencies for Microsoft.NETCore.App'. 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-x5qj-9vmx-7g6g",
  "modified" : "2022-07-08T19:33:16Z",
  "published" : "2022-05-14T01:28:01Z",
  "aliases" : [ "CVE-2019-0657" ],
  "summary" : "Improper Input Validation in .Net Framework API's",
  "details" : "A vulnerability exists in certain .Net Framework API's and Visual Studio in the way they parse URL's, aka '.NET Framework and Visual Studio Spoofing Vulnerability'.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.NETCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.NETCore.App"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.Private.Uri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "4.3.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-0657"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dotnet/announcements/issues/97"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/issues/302"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:0349"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2019-0657"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/106890"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-08T19:33:16Z",
    "nvd_published_at" : "2019-03-05T23:29:00Z"
  }
}