REDHAT-BUG-2452970: High severity foreman vulnerability
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2452970?
The severity of REDHAT-BUG-2452970 is high, with a score of 7.
What is the risk associated with REDHAT-BUG-2452970?
The risk associated with REDHAT-BUG-2452970 is rated as 33.
What is the primary issue in REDHAT-BUG-2452970?
The primary issue in REDHAT-BUG-2452970 is a privilege escalation flaw in the Foreman Usergroup model that fails to validate role assignments against the user's permissions.
Who is affected by the vulnerability REDHAT-BUG-2452970?
Authenticated users with usergroup management permissions are affected by REDHAT-BUG-2452970 as they can escalate privileges without proper checks.
How can I mitigate the effects of REDHAT-BUG-2452970?
To mitigate REDHAT-BUG-2452970, ensure that role assignments are validated against user permissions in the Foreman Usergroup model.