CVE-2026-5136
Received Received - Intake

Privilege Escalation in Foreman via Role Assignment

Vulnerability report for CVE-2026-5136, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-01

Last updated on: 2026-07-01

Assigner: Red Hat, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-01
Last Modified
2026-07-01
Generated
2026-07-01
AI Q&A
2026-07-01
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
redhat foreman *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-266 A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Impact Analysis

This vulnerability allows an authenticated user with certain usergroup management permissions to escalate their privileges to administrator level.

As a result, the attacker can gain full control over the Foreman system, potentially managing all users, configurations, and resources managed by Foreman.

This could lead to unauthorized changes, data exposure, or disruption of services managed by Foreman.

Executive Summary

CVE-2026-5136 is a privilege escalation vulnerability in Foreman, a lifecycle management tool for physical and virtual servers.

The flaw exists because the Usergroup model in Foreman does not properly validate role assignments against the calling user's permissions. This means an authenticated user who has usergroup management permissions can assign arbitrary roles, including administrative roles, to a user group.

By exploiting this, the attacker can add themselves as a member of that user group with elevated privileges, effectively gaining administrator-level access.

Detection Guidance

This vulnerability can be detected by monitoring API requests that create or update user groups with privileged roles and add users as members. Specifically, look for API calls where a user with usergroup management permissions assigns administrative roles to user groups and adds themselves as members.

Since the vulnerability involves manipulation of role assignments via API requests, inspecting logs for such suspicious API activity is recommended.

No specific commands are provided in the available resources to detect this vulnerability.

Mitigation Strategies

Immediate mitigation steps include restricting usergroup management permissions to only trusted users, as the vulnerability requires such permissions to be exploited.

Monitor and audit user group role assignments and membership changes to detect unauthorized privilege escalations.

Apply any patches or updates provided by the Foreman or Red Hat security teams once available.

Compliance Impact

The vulnerability allows an authenticated user to escalate their privileges to administrator-level access by manipulating role assignments improperly. This unauthorized privilege escalation can lead to unauthorized access to sensitive data and system controls.

Such unauthorized access and privilege escalation can negatively impact compliance with common standards and regulations like GDPR and HIPAA, which require strict access controls and protection of sensitive information.

By enabling attackers to gain administrative privileges, the vulnerability increases the risk of data breaches, unauthorized data modification, and failure to enforce least privilege principles, all of which are critical for regulatory compliance.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-5136. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart