Missing authorization in keycloak
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-862.
Summary
A privilege escalation flaw was found in the token exchange feature of keycloak. Missing authorization allows a client application holding a valid access token to exchange tokens for any target client by passing the client_id of the target. This could allow a client to gain unauthorized access to additional services.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | keycloak | keycloak versions prior to 18.0.0 | — | No fix listed | CNA |
| — | org.keycloak:keycloak-services (Maven) | before 18.0.0 | 18.0.0 | Patch available | GHSA-75p6-52g3-rqc8 |
- keycloak Vendor— Affected keycloak versions prior to 18.0.0 Fixed in — No fix listed CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected before 18.0.0 Fixed in 18.0.0 Patch available GHSA-75p6-52g3-rqc8
Remediation
- Fix · GHSA-75p6-52g3-rqc8 org.keycloak:keycloak-services (Maven) Fixed in 18.0.0 Advisory →
Red Hat 4 advisories
- RHSA-2022:1713 Released 2022-05-04 · Red Hat rating Moderatesecurity update for rh-sso-7/sso75-openshift-rhel8 container image
- Middleware Containers for OpenShift rh-sso-7/sso7-rhel8-operator-bundle, rh-sso-7/sso75-openshift-rhel8
- RHSA-2022:1711 Released 2022-05-04 · Red Hat rating ModerateRed Hat Single Sign-On 7.5.2 security update on RHEL 7
- Red Hat Single Sign-On 7.5 for RHEL 7 Server rh-sso7-keycloak-15.0.6-1.redhat_00002.1.el7sso, rh-sso7-keycloak-server-15.0.6-1.redhat_00002.1.el7sso
- RHSA-2022:1712 Released 2022-05-04 · Red Hat rating ModerateRed Hat Single Sign-On 7.5.2 security update on RHEL 8
- Red Hat Single Sign-On 7.5 for RHEL 8 rh-sso7-keycloak-15.0.6-1.redhat_00002.1.el8sso, rh-sso7-keycloak-server-15.0.6-1.redhat_00002.1.el8sso
Show 1 more Red Hat advisories
- RHSA-2022:1709 Released 2022-05-04 · Red Hat rating ModerateRed Hat Single Sign-On 7.5.2 security update
- Red Hat Single Sign-On 7
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Middleware Containers for OpenShift | Fixed | RHSA-2022:1713 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2022:1709 |
| Red Hat Single Sign-On 7.5 for RHEL 7 Server | Fixed | RHSA-2022:1711 |
| Red Hat Single Sign-On 7.5 for RHEL 8 | Fixed | RHSA-2022:1712 |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-1245
- 2026-10-03 Alias added: GHSA-75p6-52g3-rqc8
References
More Red Hat Keycloak vulnerabilities
- TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
- TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
- TI-2020-08665 Server-side request forgery in keycloak CVSS 3.1MEDIUM 5.3
- TI-2022-03468 Path traversal in Red Hat Keycloak CVSS 3.1CRITICAL 9.1
- TI-2021-03612 A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak. CVSS 3.1MEDIUM 6.1
- TI-2022-03994 Cross-site scripting in keycloak CVSS 3.1CRITICAL 10.0
Sources
- CVE-2022-1245 · CVE Program
- CVE-2022-1245 · NVD
- FIRST EPSS
- GHSA-75p6-52g3-rqc8 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-1245 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences