CVE-2026-96658

Foreman: foreman: arbitrary code execution via safemode sandbox bypass

Published Oct 1, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
A flaw was found in Foreman. This vulnerability allows an authenticated remote attacker with low-level read permissions to achieve arbitrary code execution on the underlying server. By manipulating the permitted methods list within the template rendering engine, an attacker can bypass the safemode sandbox isolation and execute unauthorized commands directly on the host system.

Analysis

AI-generated

Technical impact

Foreman’s templating engine contains a flaw that allows an authenticated remote attacker with low‑level read permissions to manipulate the list of permitted methods. By doing so, the attacker can bypass the safemode sandbox isolation and execute arbitrary commands directly on the underlying server. This grants remote code execution and compromises the confidentiality, integrity, and availability of the affected system.

Affected Systems

The vulnerability affects Red Hat Satellite 6.16 for RHEL 8 and RHEL 9, Red Hat Satellite 6.17, 6.18, and 6.19 for RHEL 9, and the corresponding Satellite Capsule and Satellite Utils components of those versions. It also impacts the Foreman application itself, including versions 3.19.0, 3.19.1, and 5.0.0, as well as the Enterprise Linux 8 and 9 platforms that run the affected Satellite packages.

Risk and Exploitability

The CVSS score of 8.8 classifies this as a high severity vulnerability, while the EPSS score of < 1% indicates a very low yet non‑zero probability of exploitation. The vulnerability is not listed in the CISA KEV catalog, so no known active exploitation. The likely attack vector is an authenticated user modifying a template in the Foreman interface to insert the malicious delegated method. The flaw can be exploited with low privilege, resulting in potentially full system compromise.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Apply the Red Hat erratum RHSA‑2026:74503 to install the patched version of Foreman and neighboring satellite components.
  • Limit low‑level permissions for users; grant only the necessary role of template editor and remove any ability to manage delegated methods.
  • Review and restrict templating configurations; ensure that the safemode sandbox is enabled and that the list of allowed delegated methods is tightly controlled.
  • Conduct a security audit of existing templates and user accounts; remove or modify any that permit exploitative delegations.

Generated by OpenCVE AI on October 18, 2026 at 07:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description A flaw was found in Foreman. An authenticated attacker with low-level permissions can achieve remote code execution (RCE) by bypassing the safemode sandbox within the templating engine. Due to improper handling of delegated methods, an attacker can append unauthorized functions to the allowed execution list, enabling them to run arbitrary commands on the hosting server. A flaw was found in Foreman. This vulnerability allows an authenticated remote attacker with low-level read permissions to achieve arbitrary code execution on the underlying server. By manipulating the permitted methods list within the template rendering engine, an attacker can bypass the safemode sandbox isolation and execute unauthorized commands directly on the host system.
Title Foreman: safemode bypass leading to rce Foreman: foreman: arbitrary code execution via safemode sandbox bypass
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Redhat enterprise Linux
CPEs cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*
cpe:2.3:a:theforeman:foreman:3.19.0:*:*:*:*:*:*:*
cpe:2.3:a:theforeman:foreman:3.19.1:*:*:*:*:*:*:*
cpe:2.3:a:theforeman:foreman:5.0.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Vendors & Products Redhat enterprise Linux
Type Values Removed Values Added
First Time appeared Theforeman
Theforeman foreman
Vendors & Products Theforeman
Theforeman foreman
Type Values Removed Values Added
CPEs cpe:/a:redhat:satellite:6.17::el9
cpe:/a:redhat:satellite_capsule:6.17::el9
cpe:/a:redhat:satellite_utils:6.17::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:satellite:6.16::el8
cpe:/a:redhat:satellite:6.16::el9
cpe:/a:redhat:satellite:6.18::el9
cpe:/a:redhat:satellite_capsule:6.16::el8
cpe:/a:redhat:satellite_capsule:6.16::el9
cpe:/a:redhat:satellite_capsule:6.18::el9
cpe:/a:redhat:satellite_utils:6.16::el8
cpe:/a:redhat:satellite_utils:6.16::el9
cpe:/a:redhat:satellite_utils:6.18::el9
References
Type Values Removed Values Added
Weaknesses CWE-94
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw was found in Foreman. An authenticated attacker with low-level permissions can achieve remote code execution (RCE) by bypassing the safemode sandbox within the templating engine. Due to improper handling of delegated methods, an attacker can append unauthorized functions to the allowed execution list, enabling them to run arbitrary commands on the hosting server.
Title Foreman: safemode bypass leading to rce
First Time appeared Redhat
Redhat satellite
Redhat satellite Capsule
Redhat satellite Utils
CPEs cpe:/a:redhat:satellite:6.19::el9
cpe:/a:redhat:satellite_capsule:6.19::el9
cpe:/a:redhat:satellite_utils:6.19::el9
Vendors & Products Redhat
Redhat satellite
Redhat satellite Capsule
Redhat satellite Utils
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 26, 2026, 3:12 PM
Reserved
Sep 23, 2026, 2:46 PM
Status
Modified
Published
Oct 1, 2026, 5:17 PM
Modified
Nov 26, 2026, 3:17 PM
Severity
Critical
Public date
Oct 1, 2026, 12:00 AM