Vulnerabilities in pkg:nuget/Microsoft.AspNetCore.HttpOverrides

PACKAGE
Advisory Identifier: GHSA-365p-96qv-xr7g
Advisory Summary

CVE-2018-0787 is a HIGH (CVSS 8.8) asp.net core allow an elevation vulnerability (CWE-640: Weak Password Recovery Mechanism for Forgotten Password) affecting Microsoft.AspNetCore.HttpOverrides libraries in the NuGet ecosystem. The issue involves asp.net core allow an elevation of privilege. Remediation is available by upgrading affected packages to version 2.0.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/Microsoft.AspNetCore.HttpOverrides

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/Microsoft.AspNetCore.HttpOverrides. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-365p-96qv-xr7g CVE-2018-0787 HIGH ASP.NET Core allow an elevation of privilege

CVE-2018-0787 at a Glance

CVE Identifier CVE-2018-0787
GHSA Identifier GHSA-365p-96qv-xr7g
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-640: Weak Password Recovery Mechanism for Forgotten Password
Affected Product Microsoft.AspNetCore.HttpOverrides
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.0/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-2018-0787

To remediate this vulnerability, upgrade all affected Microsoft.AspNetCore.HttpOverrides 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.AspNetCore.HttpOverrides fixed: 2.0.2
Upgrade Microsoft.AspNetCore.HttpOverrides to 2.0.2
Microsoft.AspNetCore.Server.Kestrel.Core fixed: 2.0.2
Upgrade Microsoft.AspNetCore.Server.Kestrel.Core to 2.0.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.AspNetCore.HttpOverrides

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-0787, inspect your project dependencies for Microsoft.AspNetCore.HttpOverrides:

inspect dependencies for Microsoft.AspNetCore.HttpOverrides

Analyze the terminal output to locate any version of Microsoft.AspNetCore.HttpOverrides in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.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-640: Weak Password Recovery Mechanism for Forgotten Password, where the product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak. In Microsoft.AspNetCore.HttpOverrides, 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

ASP.NET Core 1.0. 1.1, and 2.0 allow an elevation of privilege vulnerability due to how web applications that are created from templates validate web requests, aka "ASP.NET Core Elevation Of Privilege Vulnerability".

CVE-2018-0787 Affected Microsoft.AspNetCore.HttpOverrides Versions

2 component(s)
Fixed Versions:
2.0.2
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.AspNetCore.HttpOverrides
NuGet
≥ 2.0.0
< 2.0.2
2.0.2
Microsoft.AspNetCore.Server.Kestrel.Core
NuGet
≥ 2.0.0
< 2.0.2
2.0.2

References

Frequently Asked Questions

What is CVE-2018-0787?
CVE-2018-0787 is a security vulnerability in Microsoft.AspNetCore.HttpOverrides involving ASP.NET Core allow an elevation of privilege under CWE-640: Weak Password Recovery Mechanism for Forgotten Password.
Which Microsoft.AspNetCore.HttpOverrides versions are affected?
Affected versions include releases prior to 2.0.2 across affected packages: Microsoft.AspNetCore.HttpOverrides, Microsoft.AspNetCore.Server.Kestrel.Core.
What version fixes CVE-2018-0787?
Upgrading to 2.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.AspNetCore.HttpOverrides affected?
Yes, Microsoft.AspNetCore.HttpOverrides is affected in releases prior to 2.0.2. Upgrade your dependency to 2.0.2 or later.
Is Microsoft.AspNetCore.Server.Kestrel.Core affected?
Yes, Microsoft.AspNetCore.Server.Kestrel.Core is affected in releases prior to 2.0.2. Upgrade your dependency to 2.0.2 or later.
What is the CVSS score of CVE-2018-0787?
CVE-2018-0787 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-0787?
CVE-2018-0787 is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password (The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.).
How can I check NuGet dependencies for CVE-2018-0787?
Run the dependency tree command: 'inspect dependencies for Microsoft.AspNetCore.HttpOverrides'. 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-365p-96qv-xr7g",
  "modified" : "2022-04-26T19:06:29Z",
  "published" : "2018-10-16T19:56:59Z",
  "aliases" : [ "CVE-2018-0787" ],
  "summary" : "ASP.NET Core allow an elevation of privilege",
  "details" : "ASP.NET Core 1.0. 1.1, and 2.0 allow an elevation of privilege vulnerability due to how web applications that are created from templates validate web requests, aka \"ASP.NET Core Elevation Of Privilege Vulnerability\".",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.HttpOverrides"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.AspNetCore.Server.Kestrel.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-0787"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aspnet/Announcements/issues/295"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-365p-96qv-xr7g"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-0787"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/103282"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1040525"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-640" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:54:14Z",
    "nvd_published_at" : null
  }
}