CVE-2024-39694
Description
Duende IdentityServer is an OpenID Connect and OAuth 2.x framework for ASP.NET Core. It is possible for an attacker to craft malicious Urls that certain functions in IdentityServer will incorrectly treat as local and trusted. If such a Url is returned as a redirect, some browsers will follow it to a third-party, untrusted site. Note: by itself, this vulnerability does **not** allow an attacker to obtain user credentials, authorization codes, access tokens, refresh tokens, or identity tokens. An attacker could however exploit this vulnerability as part of a phishing attack designed to steal user credentials. This vulnerability is fixed in 7.0.6, 6.3.10, 6.2.5, 6.1.8, and 6.0.5. Duende.IdentityServer 5.1 and earlier and all versions of IdentityServer4 are no longer supported and will not be receiving updates. If upgrading is not possible, use `IUrlHelper.IsLocalUrl` from ASP.NET Core to validate return Urls in user interface code in the IdentityServer host.
Weakness
- CWE-601: URL Redirection to Untrusted Site
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2024-07-31 |
Timeline
- 2024-07-31Published by the CNA15:44 UTC
- 2024-07-31GitHub advisory published (GHSA-ff4q-64jc-gx98)same day
- 2024-07-31CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-ff4q-64jc-gx98, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| NuGet Duende.IdentityServer | from 6.0.0-preview.1 before 6.0.5 | 6.0.5 |
| NuGet Duende.IdentityServer | from 6.1.0-preview.1 before 6.1.8 | 6.1.8 |
| NuGet Duende.IdentityServer | from 6.2.0-preview.1 before 6.2.5 | 6.2.5 |
| NuGet Duende.IdentityServer | from 6.3.0-preview.1 before 6.3.10 | 6.3.10 |
| NuGet Duende.IdentityServer | from 7.0.0-preview.1 before 7.0.6 | 7.0.6 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| duendesoftware identityserver |
References
- https://github.com/DuendeSoftware/IdentityServer/commit/269ca2171fe1e901c87f2f0797bbc7c230db87c6
- https://github.com/DuendeSoftware/IdentityServer/commit/765116a2d4fb0671b6eba015e698533900c61c8e
- https://github.com/DuendeSoftware/IdentityServer/commit/d0d8eab35ad9183b14925496803ed8b36658d0a1
- https://github.com/DuendeSoftware/IdentityServer/commit/f04cf0be859b93f43563f8f812eb92206ad94011
- https://github.com/DuendeSoftware/IdentityServer/commit/fe817b499933d6ed6141b153492d7335c28b184a
- https://github.com/DuendeSoftware/IdentityServer/security/advisories/GHSA-ff4q-64jc-gx98
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-39694'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-39694'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-39694'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-39694'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).