Keycloak: keycloak: privilege escalation via forged authorization codes due to singleuseobjectprovider isolation flaw
Published Apr 2, 2026
7.4
HIGHCVSS 3.1
EPSS 0.52%
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.
Affected products
No data.
- n/a
- 26.2
- 26.2.15
- 26.4
- 26.4.11
No data.
Red Hat build of Keycloak 26.2
rhbk/keycloak-operator-bundle:26.2.15-1
Fixed · RHSA-2026:6476
Red Hat build of Keycloak 26.2
rhbk/keycloak-rhel9-operator:26.2-18
Fixed · RHSA-2026:6476
Red Hat build of Keycloak 26.2
rhbk/keycloak-rhel9:26.2-18
Fixed · RHSA-2026:6476
Red Hat build of Keycloak 26.2.15
rhbk/keycloak-rhel9
Fixed · RHSA-2026:6475
Red Hat build of Keycloak 26.4
rhbk/keycloak-operator-bundle:26.4.11-1
Fixed · RHSA-2026:6478
Red Hat build of Keycloak 26.4
rhbk/keycloak-rhel9-operator:26.4-14
Fixed · RHSA-2026:6478
Red Hat build of Keycloak 26.4
rhbk/keycloak-rhel9:26.4-14
Fixed · RHSA-2026:6478
Red Hat build of Keycloak 26.4.11
rhbk/keycloak-rhel9
Fixed · RHSA-2026:6477
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat build of Keycloak 26.2 | rhbk/keycloak-operator-bundle:26.2.15-1 | Fixed | RHSA-2026:6476 |
| Red Hat build of Keycloak 26.2 | rhbk/keycloak-rhel9-operator:26.2-18 | Fixed | RHSA-2026:6476 |
| Red Hat build of Keycloak 26.2 | rhbk/keycloak-rhel9:26.2-18 | Fixed | RHSA-2026:6476 |
| Red Hat build of Keycloak 26.2.15 | rhbk/keycloak-rhel9 | Fixed | RHSA-2026:6475 |
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-operator-bundle:26.4.11-1 | Fixed | RHSA-2026:6478 |
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-rhel9-operator:26.4-14 | Fixed | RHSA-2026:6478 |
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-rhel9:26.4-14 | Fixed | RHSA-2026:6478 |
| Red Hat build of Keycloak 26.4.11 | rhbk/keycloak-rhel9 | Fixed | RHSA-2026:6477 |
No package ranges for this CVE.
Remediation
Vendor solution
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Red Hat statement
This is an IMPORTANT vulnerability in Keycloak. An unauthenticated attacker can exploit a lack of type and namespace isolation in Keycloak's SingleUseObjectProvider to forge authorization codes and obtain admin-capable access tokens. This could lead to unauthorized administrative access within affected Keycloak deployments.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
References (13)
- https://access.redhat.com/errata/RHSA-2026:6475 vendor-advisoryx_refsource_REDHATVendor Advisory
- https://access.redhat.com/errata/RHSA-2026:6476 vendor-advisoryx_refsource_REDHATVendor Advisory
- https://access.redhat.com/errata/RHSA-2026:6477 vendor-advisoryx_refsource_REDHATVendor Advisory
- https://access.redhat.com/errata/RHSA-2026:6478 vendor-advisoryx_refsource_REDHATVendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-4282 vdb-entryx_refsource_REDHATVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2448061 issue-trackingx_refsource_REDHATIssue TrackingVendor Advisory
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-18208 Advisory
- https://github.com/advisories/GHSA-hj93-h7pg-fh6v Advisory
- https://github.com/keycloak/keycloak/commit/9046f201125a6fd6be9c116b99d348509d99d4a5
- https://github.com/keycloak/keycloak/issues/47719
- https://nvd.nist.gov/vuln/detail/CVE-2026-4282
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4282.json
- https://www.cve.org/CVERecord?id=CVE-2026-4282
Change history (0)
No recorded changes yet.