NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2023-6787: Keycloak vulnerable to session hijacking via re-authentication

mediumCVSS 3.1 6.5GHSA-c9h6-v78w-52wj

A flaw was found in Keycloak. An active keycloak session can be hijacked by initiating a new authentication (having the query parameter prompt=login) and forcing the user to enter his credentials once again. If the user cancels this re-authentication by clicking Restart login, the account takeover could take place as the new session, with a different SUB, will have the same SID as the previous session.

Published Apr 17, 2024 · Updated Mar 14, 2025

Affected packages

org.keycloak:keycloak-services

Ecosystem
Maven
Affected
< 22.0.10
Fixed in
22.0.10
Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-services

org.keycloak:keycloak-services

Ecosystem
Maven
Affected
>= 23.0.0, < 24.0.3
Fixed in
24.0.3
Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-services

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

A flaw was found in Keycloak. An active keycloak session can be hijacked by initiating a new authentication (having the query parameter prompt=login) and forcing the user to enter his credentials once again. If the user cancels this re-authentication by clicking Restart login, the account takeover could take place as the new session, with a different SUB, will have the same SID as the previous session.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries