CVE-2019-1258: Microsoft.identitymodel.clients.activedirectory Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-xc6x-cq47-9chw
CVSS 8.8
Published
Advisory Summary

CVE-2019-1258 is a HIGH (CVSS 8.8) vulnerability vulnerability (General Security Weakness) affecting Microsoft.identitymodel.clients.activedirectory libraries in the NuGet ecosystem. The issue involves vulnerability in azure active directory authentication library. Remediation is available by upgrading affected packages to version 5.2.0.

CVE-2019-1258 at a Glance

CVE Identifier CVE-2019-1258
GHSA Identifier GHSA-xc6x-cq47-9chw
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification General Security Weakness
Affected Product Microsoft.identitymodel.clients.activedirectory
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:L/UI:N/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2019-1258

To remediate this vulnerability, upgrade all affected Microsoft.identitymodel.clients.activedirectory 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.identitymodel.clients.activedirectory fixed: 5.2.0
Upgrade microsoft.identitymodel.clients.activedirectory to 5.2.0
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.identitymodel.clients.activedirectory

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-1258, inspect your project dependencies for Microsoft.identitymodel.clients.activedirectory:

inspect dependencies for microsoft.identitymodel.clients.activedirectory

Analyze the terminal output to locate any version of Microsoft.identitymodel.clients.activedirectory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.0), 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 General Security Weakness. In Microsoft.identitymodel.clients.activedirectory, 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

An elevation of privilege vulnerability exists in Azure Active Directory Authentication Library On-Behalf-Of flow, in the way the library caches tokens, aka 'Azure Active Directory Authentication Library Elevation of Privilege Vulnerability'.

CVE-2019-1258 Affected Microsoft.identitymodel.clients.activedirectory Versions

1 component(s)
Fixed Versions:
5.2.0
Product / Package Ecosystem Affected Versions Fixed Version
microsoft.identitymodel.clients.activedirectory
NuGet
≥ 5.0.0
< 5.2.0
5.2.0

References

Frequently Asked Questions

What is CVE-2019-1258?
CVE-2019-1258 is a security vulnerability in Microsoft.identitymodel.clients.activedirectory involving Vulnerability in Azure Active Directory Authentication Library under General Security Weakness.
Which Microsoft.identitymodel.clients.activedirectory versions are affected?
Affected versions include releases prior to 5.2.0 across affected packages: microsoft.identitymodel.clients.activedirectory.
What version fixes CVE-2019-1258?
Upgrading to 5.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is microsoft.identitymodel.clients.activedirectory affected?
Yes, microsoft.identitymodel.clients.activedirectory is affected in releases prior to 5.2.0. Upgrade your dependency to 5.2.0 or later.
What is the CVSS score of CVE-2019-1258?
CVE-2019-1258 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-1258?
CVE-2019-1258 is classified under General Security Weakness.
How can I check NuGet dependencies for CVE-2019-1258?
Run the dependency tree command: 'inspect dependencies for microsoft.identitymodel.clients.activedirectory'. 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-xc6x-cq47-9chw",
  "modified" : "2024-05-31T21:10:03Z",
  "published" : "2019-08-16T14:03:35Z",
  "aliases" : [ "CVE-2019-1258" ],
  "summary" : "Vulnerability in Azure Active Directory Authentication Library",
  "details" : "An elevation of privilege vulnerability exists in Azure Active Directory Authentication Library On-Behalf-Of flow, in the way the library caches tokens, aka 'Azure Active Directory Authentication Library Elevation of Privilege Vulnerability'.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "microsoft.identitymodel.clients.activedirectory"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.2.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.1.1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1258"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/AzureAD/azure-activedirectory-library-for-dotnet"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2019-1258"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-08-15T15:29:27Z",
    "nvd_published_at" : "2019-08-14T21:15:19Z"
  }
}