WaratekVRT Sign in

CVE-2023-6787 Keycloak

Affected softwareKeycloak
Severity8.8 High CVSS 3.1 2 scores
Fixed in22.0.10, 24.0.3
WeaknessImproper authentication (CWE-287)
Published25 Apr 2024
Updated17 Jun 2026

Description

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.

CWE-384CWE-613

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 2 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 0.74% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.
Candidate fix https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj : the maintainers' own security advisory: names the version that fixes it, so the fix is the difference between two releases

CVSS

8.8 HIGH v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 8.8 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H NVD Primary published
CVSS 3.1 6.5 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N secalert@redhat.com Secondary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.keycloak:keycloak-services 0 22.0.10 unbounded
org.keycloak:keycloak-services 23.0.0 24.0.3 unbounded

Products and versions

3 products, 5 version entries
SourceVendorProductSchemeAffected versions
osv org.keycloak keycloak-services generic < 22.0.10 · ≥ 23.0.0 and < 24.0.3
nvd redhat build of keycloak generic any version
nvd redhat keycloak generic < 22.0.10 · ≥ 23.0.0 and < 24.0.3

References

URLTags
https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj advisory
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 PACKAGE

Timeline

Published2024-04-25By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.