CVE-2024-27086: Microsoft.Identity.Client Denial of Service Vulnerability
LOWCVE-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
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).
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.
Upgrade Microsoft.Identity.Client to 4.59.1
Upgrade Microsoft.Identity.Client to 4.60.3
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
CVE-2024-27086 Affected Microsoft.Identity.Client Versions
2 component(s)| 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?
Which Microsoft.Identity.Client versions are affected?
What version fixes CVE-2024-27086?
Is Microsoft.Identity.Client affected?
What is the CVSS score of CVE-2024-27086?
What CWE is associated with CVE-2024-27086?
How can I check NuGet dependencies for CVE-2024-27086?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}