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.
Published: 2026-10-01
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Patch
AI Analysis

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.

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

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 yet.

History

Sun, 18 Oct 2026 06:45:00 +0000

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'}


Fri, 16 Oct 2026 14:00:00 +0000

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

Wed, 07 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
References

Sun, 04 Oct 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Theforeman
Theforeman foreman
Vendors & Products Theforeman
Theforeman foreman

Fri, 02 Oct 2026 17:00:00 +0000

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

Fri, 02 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Critical


Thu, 01 Oct 2026 23:45:00 +0000

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

Thu, 01 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
Metrics ssvc

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


Thu, 01 Oct 2026 16:30:00 +0000

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'}


Subscriptions

Redhat Enterprise Linux Satellite Satellite Capsule Satellite Utils
Theforeman Foreman
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-10-18T06:33:54.643Z

Reserved: 2026-09-23T14:46:49.272Z

Link: CVE-2026-96658

cve-icon Vulnrichment

Updated: 2026-10-07T06:12:17.303Z

cve-icon NVD

Status : Modified

Published: 2026-10-01T17:17:34.500

Modified: 2026-10-18T07:16:53.807

Link: CVE-2026-96658

cve-icon Redhat

Severity : Critical

Publid Date: 2026-10-01T00:00:00Z

Links: CVE-2026-96658 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T08:00:06Z

Weaknesses
  • CWE-94

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