CVE-2026-96658
8.8high
Foreman: foreman: arbitrary code execution via safemode sandbox bypass
- Severity
- 8.8high CVSS:3.1 by redhat
- Exploit likelihood
- 0.91% (higher than 60% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rubygem-safemode | Not specified Not affected: from 0:1.5.0-2.el8sat before *, from 0:1.5.0-2.el9sat before * | CVE List |
| foreman | Not specified Not affected: from 0:3.14.0.22-1.el9sat before *, from 0:3.18.0.14-1.el9sat before * | CVE List |
| python-dynaconf | Not specified Not affected: from 0:3.2.13-1.el9pc before * | CVE List |
| python-gitpython | Not specified Not affected: from 0:3.1.62-1.el9pc before * | CVE List |
| python-lxml | Not specified Not affected: from 0:5.3.1-2.el9pc before * | CVE List |
| python-sqlparse | Not specified Not affected: from 0:0.6.0-1.el9pc before * | CVE List |
| rubygem-foreman_remote_execution | Not specified Not affected: from 0:15.0.2-2.el9sat before * | CVE List |
| rubygem-hammer_cli | Not specified Not affected: from 0:3.14.0-2.el9sat before * | CVE List |
| rubygem-katello | Not specified Not affected: from 0:4.16.0.20-1.el9sat before * | CVE List |
| satellite | Not specified Not affected: from 0:6.17.12-1.el9sat before * | CVE List |
| yggdrasil-worker-forwarder | Not specified Not affected: from 0:0.1.0-2.1.el9sat before * | CVE List |
| 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 | NVD |
| theforeman foreman | before 2.0.1, 3.19.0, 3.19.1, 5.0.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-96658 changed 2026-11-26 | CVE Terms of Use |
| NVD | CVE-2026-96658 changed 2026-11-26 | Public domain |