CVE-2023-6927: keycloak-core: open redirect via "form_post.jwt" JARM response mode
An incomplete fix was found in Keycloak Core patch. An attacker can steal authorization codes or tokens from clients using a wildcard in the JARM response mode "formpost.jwt". It is observed that changing the responsemode parameter in the original proof of concept from "formpost" to "formpost.jwt" can bypass the security patch implemented to address CVE-2023-6134.
Published Jan 23, 2024 · Updated Dec 26, 2024
Affected packages
org.keycloak:keycloak-core
- Ecosystem
- Maven
- Affected
- < 23.0.4
- Fixed in
- 23.0.4
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An incomplete fix was found in Keycloak Core patch. An attacker can steal authorization codes or tokens from clients using a wildcard in the JARM response mode "form_post.jwt". It is observed that changing the response_mode parameter in the original proof of concept from "form_post" to "form_post.jwt" can bypass the security patch implemented to address CVE-2023-6134.
Credited to PontusHanssen, kasperkarlsson, Chetven.
References
- https://github.com/keycloak/keycloak/security/advisories/GHSA-9vm7-v8wj-3fqw
- https://nvd.nist.gov/vuln/detail/CVE-2023-6927
- https://access.redhat.com/errata/RHSA-2024:0094
- https://access.redhat.com/errata/RHSA-2024:0095
- https://access.redhat.com/errata/RHSA-2024:0096
- https://access.redhat.com/errata/RHSA-2024:0097
- https://access.redhat.com/errata/RHSA-2024:0098
- https://access.redhat.com/errata/RHSA-2024:0100
- https://access.redhat.com/errata/RHSA-2024:0101
- https://access.redhat.com/security/cve/CVE-2023-6927
- https://bugzilla.redhat.com/show_bug.cgi?id=2255027
- https://github.com/advisories/GHSA-9vm7-v8wj-3fqw
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 entriesCVE-2024-4028
Keycloak allows cross-site scripting (XSS)
low3.8No fixFeb 18, 2025CVE-2024-10039
Keycloak mTLS Authentication Bypass via Reverse Proxy TLS Termination
high7.1Nov 25, 2024CVE-2024-7318
Keycloaks's One Time Passcode (OTP) is valid longer than expiration timeSeverity
medium4.8Oct 14, 2024CVE-2023-6841
Keycloak Denial of Service vulnerability
high6.5Sep 10, 2024CVE-2024-7260
Keycloak Open Redirect vulnerability
medium4.4Sep 9, 2024
