# CVE-2026-96658: Foreman: foreman: arbitrary code execution via safemode sandbox bypass

- Severity: High 8.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 60% of CVEs (2026-12-01)
- Published: 2026-10-01T16:23:23.688Z
- Modified: 2026-11-26T15:17:45.343Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- rubygem-safemode: no versions given (not affected: from 0:1.5.0-2.el8sat before *; from 0:1.5.0-2.el9sat before *)
- foreman: no versions given (not affected: from 0:3.14.0.22-1.el9sat before *; from 0:3.18.0.14-1.el9sat before *)
- python-dynaconf: no versions given (not affected: from 0:3.2.13-1.el9pc before *)
- python-gitpython: no versions given (not affected: from 0:3.1.62-1.el9pc before *)
- python-lxml: no versions given (not affected: from 0:5.3.1-2.el9pc before *)
- python-sqlparse: no versions given (not affected: from 0:0.6.0-1.el9pc before *)
- rubygem-foreman_remote_execution: no versions given (not affected: from 0:15.0.2-2.el9sat before *)
- rubygem-hammer_cli: no versions given (not affected: from 0:3.14.0-2.el9sat before *)
- rubygem-katello: no versions given (not affected: from 0:4.16.0.20-1.el9sat before *)
- satellite: no versions given (not affected: from 0:6.17.12-1.el9sat before *)
- yggdrasil-worker-forwarder: no versions given (not affected: from 0:0.1.0-2.1.el9sat before *)
- redhat satellite: from 6.16 before 6.16.4; from 6.17 before 6.17.12; from 6.19 before 6.19.5; from 6.18 before 6.18.10
- theforeman foreman: before 2.0.1; 3.19.0; 3.19.1; 5.0.0

## References

- <https://access.redhat.com/errata/RHSA-2026:74503> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:74504> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:74505> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:74506> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-96658> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2534185> (issue-tracking, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/10/07/2> (mailing-list, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-96658](https://www.cve.org/CVERecord?id=CVE-2026-96658), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2026-96658](https://nvd.nist.gov/vuln/detail/CVE-2026-96658), Public domain, modified 2026-11-26

---

Page: https://cve.day/CVE-2026-96658 · Whole record: https://cve.day/CVE-2026-96658.json · Rebuilt by cve.day 2026-11-26T15:32:15.263Z
