SB2022050415 - Multiple vulnerabilities in Keycloak



SB2022050415 - Multiple vulnerabilities in Keycloak

Published: May 4, 2022 Updated: June 29, 2026

Security Bulletin ID SB2022050415
CSH Severity
High
Patch available
YES
Number of vulnerabilities 3
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

Medium 67% Low 33%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 3 vulnerabilities.


1) Missing Authorization (CVE-ID: CVE-2022-1245)

CWE-ID: CWE-862 - Missing Authorization

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green


The vulnerability allows a remote attacker to escalate privileges on the system.

The vulnerability exists due to an error in the token exchange feature of keycloak. A client application holding a valid access token can exchange tokens for any target client by passing the client_id of the target. A remote user can bypass authorization process and escalate privileges within the application.


2) Open redirect (CVE-ID: CVE-2020-10734)

CWE-ID: CWE-601 - URL Redirection to Untrusted Site ('Open Redirect')

CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear


The vulnerability allows a remote attacker to redirect users to an untrusted site.

The vulnerability exists due to open redirect in the OIDC logout endpoint when handling logout requests without an id_token_hint. A remote attacker can send a specially crafted logout request to redirect users to an untrusted site.

The endpoint does not have CSRF protection.


3) Improper Encoding or Escaping of Output (CVE-ID: CVE-2021-20323)

CWE-ID: CWE-116 - Improper Encoding or Escaping of Output

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green


The vulnerability allows a remote attacker to execute arbitrary script in the user's browser.

The vulnerability exists due to improper encoding or escaping of output in the client registration endpoint when handling a malicious POST request. A remote attacker can send a specially crafted request to execute arbitrary script in the user's browser.


Remediation

Install update from vendor's website.