cve.bz

CVE-2024-51987 duendesoftware duende.accesstokenmanagement: Privilege Context Switching Error

5.4 mediumEPSS 0.4%Fix available

Medium (5.4) in duendesoftware duende.accesstokenmanagement. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in Duende.AccessTokenManagement.OpenIdConnect 3.0.1.

On this page
Duende.AccessTokenManagement.OpenIdConnect is a set of .NET libraries that manage OAuth and OpenId Connect access tokens. HTTP Clients created by `AddUserAccessTokenHttpClient` may use a different user's access token after a token refresh occurs. This occurs because a refreshed token will be captured in pooled `HttpClient` instances, which may be used by a different user. Instead of using `AddUserAccessTokenHttpClient` to create an `HttpClient` that automatically adds a managed token to outgoing requests, you can use the `HttpConext.GetUserAccessTokenAsync` extension method or the `IUserTokenManagementService.GetAccessTokenAsync` method. This issue is fixed in Duende.AccessTokenManagement.OpenIdConnect 3.0.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS
0.4% (up from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-11-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-270 Privilege Context Switching Error
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Duende.AccessTokenManagement.OpenIdConnect (NuGet): fixed in 3.0.1

Ask an AI about this CVE

Show the promptExplain CVE-2024-51987 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-51987?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-51987?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-51987 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
DuendeSoftware Duende.AccessTokenManagement= 3.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7mr7-4f54-vcx5NuGetDuende.AccessTokenManagement.OpenIdConnect>=3.0.0 <3.0.13.0.1

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-30 Hijacking a Privileged Thread of Execution Likelihood: Low · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON