CVE-2023-6787Redhat Build Of Keycloak
High 8.8 No auth needed
Follow: this CVE · Redhat · Redhat Build Of Keycloak We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 63
- Auth required
- No
- Published
- Apr 25, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-287
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
A flaw was found in Keycloak that occurs from an error in the re-authentication mechanism within org.keycloak.authentication. This flaw allows hijacking an active Keycloak session by triggering a new authentication process with the query parameter "prompt=login," prompting the user to re-enter their credentials. If the user cancels this re-authentication by selecting "Restart login," an account takeover may occur, as the new session, with a different SUB, will possess the same SID as the previous session.
What to do
- Apply the vendor's security update for Build Of Keycloak.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services |
< 22.0.10 |
22.0.10 |
— |
| Maven | org.keycloak:keycloak-services |
≥ 23.0.0 < 24.0.3 |
24.0.3 |
— |
Per OSV / GitHub Advisories (GHSA-c9h6-v78w-52wj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| redhat | build_of_keycloak | all |
| redhat | keycloak | < 22.0.10 |
| redhat | keycloak | ≥ 23.0.0 < 24.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com Vendor Advisory
- access.redhat.com Vendor Advisory
- access.redhat.com Vendor Advisory
- bugzilla.redhat.com Issue Tracking Vendor Advisory
- github.com Vendor Advisory