CVE-2026-4282 Keycloak: keycloak: privilege escalation via forged authorization codes due to singleuseobjectprovider isolation flaw
Unauthenticated attackers can forge authorization codes to obtain admin tokens, leading to privilege escalation in Keycloak.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-4282?
CVE-2026-4282 is a high-severity vulnerability in Redhat Build of Keycloak, published on 2 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A flaw was found in Keycloak. The SingleUseObjectProvider, a global key-value store, lacks proper type and namespace isolation. This vulnerability allows an unauthenticated attacker to forge authorization codes. Successful exploitation can lead to the creation of admin-capable access tokens, resulting in privilege escalation.
Weakness: CWE-653
Which versions are affected by CVE-2026-4282?
3 open source packages ship an affected version, including org.keycloak:keycloak-services and keycloak. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-services Maven | All versions | 26.5.7 |
org.keycloak:keycloak-services Maven | All versions | 26.5.7 |
keycloak Bitnami | From 26.2.0 | 26.2.1, 26.3.0, 26.4.1, 26.5.0 |
Products include Redhat Build of Keycloak.
How do I fix CVE-2026-4282?
Upgrade org.keycloak:keycloak-services to 26.5.7 or later.
Is CVE-2026-4282 being exploited?
There is no known exploitation of CVE-2026-4282 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Redhat Build of Keycloak
- CVE-2026-15572 Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation
- CVE-2026-3047 Keycloak SAML Broken has Authentication Bypass by Primary Weakness
- CVE-2026-15573 Keycloak-services: keycloak-services: authorization bypass via unnormalized uri matching in pathmatcher
- CVE-2026-16102 Keycloak-services: keycloak-services: default dcr policy allows role forgery via user property mappers
- CVE-2026-1609 Org.keycloak/keycloak-quarkus-server: keycloak: unauthorized access via jwt authorization grant with disabled users
Sources
Also known as BIT-keycloak-2026-4282, ECHO-dc8f-bece-24e2, GHSA-hj93-h7pg-fh6v, MINI-9ph4-r6j2-xvr9, MINI-c6q8-w27x-hx4v.