CVE-2023-6787: A flaw was found in Keycloak that occurs from an error in the re-authentication mechanism within org.keycloak.authentication.
High CVSS 8.8
- CVE id
- CVE-2023-6787
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Keycloak Runtimes and servers |
< 22.0.10 >= 23.0.0, < 24.0.3 |
22.0.10, 24.0.3 |
How to fix it
Upgrade Keycloak to the fixed release of the line you run: 22.0.10, 24.0.3.
- Upgrade Keycloak (the quay.io/keycloak/keycloak image tag) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2023-6787 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-6787
- Web: https://access.redhat.com/errata/RHSA-2024:1867
- Web: https://access.redhat.com/errata/RHSA-2024:1868
- Web: https://access.redhat.com/security/cve/CVE-2023-6787
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=2254375
- Web: https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj
- Web: https://access.redhat.com/errata/RHSA-2024:1867
- Web: https://access.redhat.com/errata/RHSA-2024:1868
- Web: https://access.redhat.com/security/cve/CVE-2023-6787
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=2254375
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.