CVE-2023-6927
keycloak-core: open redirect via "form_post.jwt" JARM response mode
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.keycloak » keycloak-core | < 23.0.4 | 23.0.4 |
Blast radius
65% of the dependent artifacts (974) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 12,499 |
| 2 hops | 17,232 |
| 3 hops | 13,521 |
| 4 hops | 3,921 |
| 5 hops | 2,589 |
| 6 hops | 609 |
Most used dependents
- org.keycloak » keycloak-services223 usages
- org.keycloak » keycloak-admin-client216 usages
- org.alfresco » alfresco-repository121 usages
- com.github.dasniko » testcontainers-keycloak113 usages
- org.keycloak » keycloak-authz-client98 usages
- org.keycloak » keycloak-spring-boot-starter93 usages
- org.alfresco » alfresco-remote-api67 usages
- org.keycloak » keycloak-model-jpa62 usages
- org.keycloak » keycloak-spring-security-adapter56 usages
- org.keycloak » keycloak-undertow-adapter48 usages
- org.commonjava.indy » indy-core43 usages
- city.smartb.i2 » keycloak-auth-client42 usages
- io.apicurio » apicurio-registry-common42 usages
- org.alfresco » share37 usages
- io.apicurio » apicurio-registry-utils-converter37 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-6927 | nvd.nist.gov |
| Package | keycloak/keycloak | github.com |
| Web | keycloak/keycloak advisory GHSA-9vm7-v8wj-3fqw | github.com |
| Web | errata/RHSA-2024:0094 | access.redhat.com |
| Web | errata/RHSA-2024:0095 | access.redhat.com |
| Web | errata/RHSA-2024:0096 | access.redhat.com |
| Web | errata/RHSA-2024:0097 | access.redhat.com |
| Web | errata/RHSA-2024:0098 | access.redhat.com |
| Web | errata/RHSA-2024:0100 | access.redhat.com |
| Web | errata/RHSA-2024:0101 | access.redhat.com |
| Web | security/cve/CVE-2023-6927 | access.redhat.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
