CVE-2026-96658
Foreman: foreman: arbitrary code execution via safemode sandbox bypass
What happened?
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 software and versions
| Software | Version information | Fixed version |
|---|---|---|
| rubygem-safemodeRed Hat | unaffected: 0:1.5.0-2.el8sat to < * | See vendor advisory |
| rubygem-safemodeRed Hat | unaffected: 0:1.5.0-2.el9sat to < * | See vendor advisory |
| foremanRed Hat | unaffected: 0:3.14.0.22-1.el9sat to < * | See vendor advisory |
| python-dynaconfRed Hat | unaffected: 0:3.2.13-1.el9pc to < * | See vendor advisory |
| python-gitpythonRed Hat | unaffected: 0:3.1.62-1.el9pc to < * | See vendor advisory |
| python-lxmlRed Hat | unaffected: 0:5.3.1-2.el9pc to < * | See vendor advisory |
| python-sqlparseRed Hat | unaffected: 0:0.6.0-1.el9pc to < * | See vendor advisory |
| rubygem-foreman_remote_executionRed Hat | unaffected: 0:15.0.2-2.el9sat to < * | See vendor advisory |
| rubygem-hammer_cliRed Hat | unaffected: 0:3.14.0-2.el9sat to < * | See vendor advisory |
| rubygem-katelloRed Hat | unaffected: 0:4.16.0.20-1.el9sat to < * | See vendor advisory |
| rubygem-safemodeRed Hat | unaffected: 0:1.5.0-2.el9sat to < * | See vendor advisory |
| satelliteRed Hat | unaffected: 0:6.17.12-1.el9sat to < * | See vendor advisory |
| yggdrasil-worker-forwarderRed Hat | unaffected: 0:0.1.0-2.1.el9sat to < * | See vendor advisory |
| rubygem-safemodeRed Hat | unaffected: 0:1.5.0-2.el9sat to < * | See vendor advisory |
| foremanRed Hat | unaffected: 0:3.18.0.14-1.el9sat to < * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-96658
- https://access.redhat.com/errata/RHSA-2026:74503
- https://access.redhat.com/errata/RHSA-2026:74504
- https://access.redhat.com/errata/RHSA-2026:74505
- https://access.redhat.com/errata/RHSA-2026:74506
- https://access.redhat.com/security/cve/CVE-2026-96658
- https://bugzilla.redhat.com/show_bug.cgi?id=2534185
- http://www.openwall.com/lists/oss-security/2026/10/07/2