Keycloak-core: open redirect on account page
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-601.
Summary
An open redirect vulnerability was found in Keycloak. A specially crafted URL can be constructed where the referrer and referrer_uri parameters are made to trick a user to visit a malicious webpage. A trusted URL can trick users and automation into believing that the URL is safe, when, in fact, it redirects to a malicious server. This issue can result in a victim inadvertently trusting the destination of the redirect, potentially leading to a successful phishing attack or other types of attacks. Once a crafted URL is made, it can be sent to a Keycloak admin via email for example. This will trigger this vulnerability when the user visits the page and clicks the link. A malicious actor can use this to target users they know are Keycloak admins for further attacks. It may also be possible to bypass other domain-related security checks, such as supplying this as a OAuth redirect uri. The malicious actor can further obfuscate the redirect_uri using URL encoding, to hide the text of the actual malicious website domain.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | keycloak | before 24.0.7 | 24.0.7 | Patch available | CNA |
| Red Hat | Red Hat Build of Keycloak | — | — | Not affected | CNA |
| Red Hat | Red Hat build of Keycloak 24 | — | 24.0.7-4 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 24 | — | 24-16 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 24 | — | 24-16 | Patch available | CNA |
| — | org.keycloak:keycloak-core (Maven) | before 24.0.7 | 24.0.7 | Patch available | GHSA-g4gc-rh26-m3p5 |
- keycloak Vendor— Affected before 24.0.7 Fixed in 24.0.7 Patch available CNA
- Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat build of Keycloak 24 VendorRed Hat Affected — Fixed in 24.0.7-4 Patch available CNA
- Red Hat build of Keycloak 24 VendorRed Hat Affected — Fixed in 24-16 Patch available CNA
- Red Hat build of Keycloak 24 VendorRed Hat Affected — Fixed in 24-16 Patch available CNA
- org.keycloak:keycloak-core (Maven) Vendor— Affected before 24.0.7 Fixed in 24.0.7 Patch available GHSA-g4gc-rh26-m3p5
Remediation
- Fix · CNA keycloak Fixed in 24.0.7
- Fix · GHSA-g4gc-rh26-m3p5 org.keycloak:keycloak-core (Maven) Fixed in 24.0.7 Advisory →
Red Hat 2 advisories
- RHSA-2024:6503 Released 2024-09-09 · Red Hat rating ModerateRed Hat build of Keycloak 24.0.7 Update
- Red Hat Build of Keycloak
- RHSA-2024:6502 Released 2024-09-09 · Red Hat rating ModerateRed Hat build of Keycloak 24.0.7 Images Update
- Red Hat build of Keycloak 24 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Red Hat Build of Keycloak, Red Hat build of Keycloak 24 — RHSA-2024:6502
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2024-06802 Wildfly-elytron: org.keycloak/keycloak-services: session fixation in elytron saml adaptersPriority LOW 35
- TI-2024-06779 Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverityPriority LOW 22
- Advisory ·
Red Hat Build of Keycloak, Red Hat build of Keycloak 24 — RHSA-2024:6503
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2024-06802 Wildfly-elytron: org.keycloak/keycloak-services: session fixation in elytron saml adaptersPriority LOW 35
- TI-2024-06779 Keycloak-core: one time passcode (otp) is valid longer than expiration timeseverityPriority LOW 22
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Keycloak | Fixed | RHSA-2024:6503 |
| Red Hat build of Keycloak 24 | Fixed | RHSA-2024:6502 |
Timeline
- 2026-10-02 Threatist record created from CVE-2024-7260
- 2026-10-03 Alias added: GHSA-g4gc-rh26-m3p5
References
More Red Hat Build Of Keycloak vulnerabilities
- TI-2026-02223 Keycloak: keycloak: unauthorized authentication via disabled saml identity provider CVSS 3.1HIGH 8.1
- TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
- TI-2026-13740 Keycloak-services: keycloak-services: saml idp-initiated broker login bypasses link-only restriction CVSS 3.1CRITICAL 9.8
- TI-2026-13741 Keycloak-services: keycloak-services: saml broker metadata import disables response signature validation CVSS 3.1CRITICAL 9.1
- TI-2026-13106 Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation CVSS 3.1HIGH 8.8
- TI-2026-02631 Authentication bypass in Red Hat build of Keycloak 26.2 CVSS 3.1HIGH 8.8
Sources
- CVE-2024-7260 · CVE Program
- CVE-2024-7260 · NVD
- FIRST EPSS
- GHSA-g4gc-rh26-m3p5 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-7260 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences