CVE-2024-27086: Microsoft.Identity.Client Denial of Service Vulnerability

LOW
Advisory Identifier: GHSA-x674-v45j-fwxw
CVSS 3.9
CWE-863 CWE-926
Published
Advisory Summary

CVE-2024-27086 is a LOW (CVSS 3.9) denial of service vulnerability (CWE-863: Incorrect Authorization) affecting Microsoft.Identity.Client libraries in the NuGet ecosystem. The issue involves msal.net applications targeting xamarin android and .net android (maui) susceptible to local denial of service. Remediation is available by upgrading affected packages to version 4.59.1, 4.60.3.

CVE-2024-27086 at a Glance

CVE Identifier CVE-2024-27086
GHSA Identifier GHSA-x674-v45j-fwxw
Severity LOW
CVSS v3.1 Base Score 3.9
CWE Classification CWE-863: Incorrect Authorization
Affected Product Microsoft.Identity.Client
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 3.9

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

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

How to Fix CVE-2024-27086

To remediate this vulnerability, upgrade all affected Microsoft.Identity.Client 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.Identity.Client fixed: 4.59.1
Upgrade Microsoft.Identity.Client to 4.59.1
Microsoft.Identity.Client fixed: 4.60.3
Upgrade Microsoft.Identity.Client to 4.60.3
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.Identity.Client

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-27086, inspect your project dependencies for Microsoft.Identity.Client:

inspect dependencies for Microsoft.Identity.Client

Analyze the terminal output to locate any version of Microsoft.Identity.Client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.59.1), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Microsoft.Identity.Client, 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

>[!IMPORTANT] >**ONLY** applications targeting Xamarin Android and .NET Android (MAUI) are impacted. All others can safely dismiss this CVE. ### Impact [MSAL.NET](https://www.nuget.org/packages/Microsoft.Identity.Client/) applications targeting Xamarin Android and .NET Android (e.g., MAUI) using the library from versions `4.48.0` to `4.60.3` (inclusive, except `4.59.1` and `4.60.3`) are impacted by a low severity vulnerability. A malicious application running on a customer Android device can (1) inject HTML/JavaScript in an embedded web view exported by affected applications, or (2) cause local denial of service against applications that were built using MSAL.NET for authentication on the same device (i.e., prevent the user of the legitimate application from logging in) due to incorrect activity export configuration. ### Patches MSAL.NET version 4.60.3 includes the fix. We recommend all users of MSAL.NET that are building public client applications for Android update to the latest version. ### Workarounds We recommend developers update to the latest version of MSAL.NET. If that is not possible, a developer may explicitly mark the MSAL.NET activity non-exported: ```xml <activity android:name="microsoft.identity.client.AuthenticationAgentActivity" android:configChanges="orientation|screenSize" android:exported="false"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="msalYOUR_CLIENT_ID" android:host="auth" /> </intent-filter> </activity> ``` ### References Refer to [MSAL.NET documentation](https://learn.microsoft.com/entra/msal/dotnet/) for latest guidance and best practices on configuring client applications using the library.

CVE-2024-27086 Affected Microsoft.Identity.Client Versions

2 component(s)
Fixed Versions:
4.59.14.60.3
Product / Package Ecosystem Affected Versions Fixed Version
Microsoft.Identity.Client
NuGet
≥ 4.48.0
< 4.59.1
4.59.1
Microsoft.Identity.Client
NuGet
≥ 4.60.0
< 4.60.3
4.60.3

References

Frequently Asked Questions

What is CVE-2024-27086?
CVE-2024-27086 is a security vulnerability in Microsoft.Identity.Client involving MSAL.NET applications targeting Xamarin Android and .NET Android (MAUI) susceptible to local denial of service under CWE-863: Incorrect Authorization.
Which Microsoft.Identity.Client versions are affected?
Affected versions include releases prior to 4.59.1, 4.60.3 across affected packages: Microsoft.Identity.Client.
What version fixes CVE-2024-27086?
Upgrading to 4.59.1, 4.60.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.Identity.Client affected?
Yes, Microsoft.Identity.Client is affected in releases prior to 4.59.1, 4.60.3. Upgrade your dependency to 4.59.1, 4.60.3 or later.
What is the CVSS score of CVE-2024-27086?
CVE-2024-27086 has a CVSS v3.1 base score of 3.9 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2024-27086?
CVE-2024-27086 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check NuGet dependencies for CVE-2024-27086?
Run the dependency tree command: 'inspect dependencies for Microsoft.Identity.Client'. 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-x674-v45j-fwxw",
  "modified" : "2024-04-23T20:42:11Z",
  "published" : "2024-04-16T21:41:57Z",
  "aliases" : [ "CVE-2024-27086" ],
  "summary" : "MSAL.NET applications targeting Xamarin Android and .NET Android (MAUI) susceptible to local denial of service",
  "details" : ">[!IMPORTANT]\n>**ONLY** applications targeting Xamarin Android and .NET Android (MAUI) are impacted. All others can safely dismiss this CVE.\n\n### Impact\n\n[MSAL.NET](https://www.nuget.org/packages/Microsoft.Identity.Client/) applications targeting Xamarin Android and .NET Android (e.g., MAUI) using the library from versions `4.48.0` to `4.60.3` (inclusive, except `4.59.1` and `4.60.3`) are impacted by a low severity vulnerability.   \n\nA malicious application running on a customer Android device can (1) inject HTML/JavaScript in an embedded web view exported by affected applications, or (2) cause local denial of service against applications that were built using MSAL.NET for authentication on the same device (i.e., prevent the user of the legitimate application from logging in) due to incorrect activity export configuration.\n\n### Patches\n\nMSAL.NET version 4.60.3 includes the fix. We recommend all users of MSAL.NET that are building public client applications for Android update to the latest version.\n\n### Workarounds\n\nWe recommend developers update to the latest version of MSAL.NET. If that is not possible, a developer may explicitly mark the MSAL.NET activity non-exported:\n\n```xml\n<activity android:name=\"microsoft.identity.client.AuthenticationAgentActivity\" android:configChanges=\"orientation|screenSize\" android:exported=\"false\">\n<intent-filter>\n<action android:name=\"android.intent.action.VIEW\" />\n<category android:name=\"android.intent.category.DEFAULT\" />\n<category android:name=\"android.intent.category.BROWSABLE\" />\n<data android:scheme=\"msalYOUR_CLIENT_ID\" android:host=\"auth\" />\n</intent-filter>\n</activity>\n```\n\n### References\n\nRefer to [MSAL.NET documentation](https://learn.microsoft.com/entra/msal/dotnet/) for latest guidance and best practices on configuring client applications using the library.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.Identity.Client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.48.0"
      }, {
        "fixed" : "4.59.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Microsoft.Identity.Client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.60.0"
      }, {
        "fixed" : "4.60.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/security/advisories/GHSA-x674-v45j-fwxw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27086"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/commit/413e319472ccf48c86647f19fa2aa49ff6038488"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/AzureAD/microsoft-authentication-library-for-dotnet"
  }, {
    "type" : "WEB",
    "url" : "https://learn.microsoft.com/en-us/entra/msal/dotnet"
  }, {
    "type" : "WEB",
    "url" : "https://www.nuget.org/packages/Microsoft.Identity.Client"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863", "CWE-926" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-16T21:41:57Z",
    "nvd_published_at" : "2024-04-16T22:15:34Z"
  }
}