CVE-2026-4629

MEDIUM

Keycloak: keycloak: privilege escalation through hardcoded role mapper injection

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-4629. PoCs published by HermesNA-1.

AI-analyzed exploit summary This repository contains an auto-generated stub module for CVE-2026-4629, a privilege escalation vulnerability in Keycloak. The code includes placeholder methods (`check`, `run`) with no actual exploit logic, only references to external sources for details.

Description

A flaw was found in Keycloak. A highly privileged user with `manage-clients` permission can exploit this vulnerability by injecting a hardcoded role mapper into any client. This action allows the user to bypass existing scope restrictions and inject the `realm-admin` role into generated tokens, resulting in privilege escalation and full administrative access to the realm.

Exploits (1)

github STUB 1 stars
by HermesNA-1 · pythonpoc
https://github.com/HermesNA-1/SnakeSploit/tree/main/data/modules_generated/cve-2026-4629_flaw_was_found.py

This repository contains an auto-generated stub module for CVE-2026-4629, a privilege escalation vulnerability in Keycloak. The code includes placeholder methods (`check`, `run`) with no actual exploit logic, only references to external sources for details.

Classification
Stub 99%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Theoretical
Target: Keycloak (unspecified version)
Auth required
Prerequisites: Attacker must have `manage-clients` permission in Keycloak · Access to the Keycloak admin interface/API
mistral-large-3 · analyzed Jul 09, 2026 Full analysis →

References (2)

Core 2
Core References
Vdb Entry, X_Refsource_Redhat vdb-entry x_refsource_redhat
https://access.redhat.com/security/cve/CVE-2026-4629
Issue Tracking, X_Refsource_Redhat issue-tracking x_refsource_redhat
RHBZ#2450244
https://bugzilla.redhat.com/show_bug.cgi?id=2450244

Scores

CVSS v3 6.5
EPSS 0.0024
EPSS Percentile 15.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-266
Status published
Products (2)
Red Hat/Red Hat Build of Keycloak
redhat/build_of_keycloak
Published Jun 30, 2026
Tracked Since Jun 30, 2026