Foreman RCE: SafeMode Templating Bypass
CVE-2026-96658 Published on October 1, 2026
Foreman: foreman: arbitrary code execution via safemode sandbox bypass
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.
Vulnerability Analysis
CVE-2026-96658 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Timeline
Reported to Red Hat.
Made public. 16 days later.
Weakness Type
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2026-96658 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2026-96658
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
Red Hat Satellite 6.16 for RHEL 8:- Version 0:1.5.0-2.el8sat and below * is unaffected.
- Version 0:1.5.0-2.el9sat and below * is unaffected.
- Version 0:3.14.0.22-1.el9sat and below * is unaffected.
- Version 0:3.2.13-1.el9pc and below * is unaffected.
- Version 0:3.1.62-1.el9pc and below * is unaffected.
- Version 0:5.3.1-2.el9pc and below * is unaffected.
- Version 0:0.6.0-1.el9pc and below * is unaffected.
- Version 0:15.0.2-2.el9sat and below * is unaffected.
- Version 0:3.14.0-2.el9sat and below * is unaffected.
- Version 0:4.16.0.20-1.el9sat and below * is unaffected.
- Version 0:1.5.0-2.el9sat and below * is unaffected.
- Version 0:6.17.12-1.el9sat and below * is unaffected.
- Version 0:0.1.0-2.1.el9sat and below * is unaffected.
- Version 0:1.5.0-2.el9sat and below * is unaffected.
- Version 0:3.18.0.14-1.el9sat and below * is unaffected.