Skip to main content
CVE-2023-6787VulnerabilityPublished Updated

CVE-2023-6787: Improper Authentication

Source CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

AI-suggested

Organizations should immediately review their Keycloak deployment configurations and monitor for any unusual session behaviors. Although no official patches are currently listed, administrators should: 1) Disable or restrict the use of the "prompt=login" parameter in authentication requests where feasible. 2) Implement strict session management policies that invalidate sessions upon re-authentication attempts or cancellation events. 3) Enhance user awareness training to reduce the likelihood of users canceling re-authentication prompts in suspicious contexts. 4) Employ multi-factor authentication (MFA) to add an additional layer of security beyond session tokens. 5) Monitor authentication logs for anomalies related to session restarts or multiple sessions sharing the same SID. 6) Stay updated with Keycloak vendor advisories for forthcoming patches and apply them promptly. 7) Consider deploying web application firewalls (WAF) rules to detect and block suspicious authentication flows involving the "prompt=login" parameter. These targeted steps go beyond generic advice by focusing on the specific mechanism exploited by this vulnerability.

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.

References

Community reviews

Loading reviews…