CVE-2026-5136: Foreman: foreman: privilege escalation to administrator-level access via usergroup role assignment manipulation
A flaw was found in Foreman. The Usergroup model in Foreman does not properly validate role assignments against the calling user's permissions. This allows an authenticated user with usergroup management permissions to attach arbitrary roles, including administrative roles, to a user group and then add themselves as a member. Successful exploitation of this vulnerability leads to full privilege escalation, granting the attacker administrator-level access.
Other sources
Summary: A privilege escalation flaw was found in Foreman. The Usergroup model does not validate role assignments against the calling user's permissions, unlike the User model which enforces escalation checks. This flaw allows an authenticated user with usergroup management permissions to attach arbitrary roles, including administrative roles, to a user group and add themselves as a member, resulting in full privilege escalation to administrator-level access.
Requirements to exploit: Authenticated Foreman account with createusergroups or editusergroups permission (e.g., Site manager, Organization admin, Manager roles, or any custom role including these permissions). Attacker crafts a single API request to create or update a user group with a privileged roleid and their own userid.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Foremanto a version that resolves this vulnerability.Fixed in 3.18.2 - Upgrade
Upgrade
Foremanto a version that resolves this vulnerability.Fixed in 3.19.1 - Compensating control
Limit authenticated Foreman accounts with create_usergroups or edit_usergroups permissions (e.g., Site manager, Organization admin, Manager roles, or any custom role including these permissions) to only trusted admins to reduce exposure to usergroup role assignment manipulation.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5136?
CVE-2026-5136 has a high severity rating of 8.8.
How do I fix CVE-2026-5136?
To remediate CVE-2026-5136, apply the latest patches and updates provided by Red Hat for Foreman.
What systems are affected by CVE-2026-5136?
CVE-2026-5136 impacts Red Hat Satellite and Foreman installations that utilize usergroup management permissions.
What kind of vulnerability is CVE-2026-5136?
CVE-2026-5136 is a privilege escalation vulnerability that allows unauthorized role assignment in Foreman.
Who is at risk from CVE-2026-5136?
Authenticated users with usergroup management permissions are at risk from CVE-2026-5136 due to improper validation of role assignments.