Skip to content
statance
MenuClose
high · CVSS 8.8

CVE-2026-96658

Foreman: foreman: arbitrary code execution via safemode sandbox bypass

Published 1 Oct 2026 · Source updated 2 Nov 2026 · Retrieved 2026-11-06 14:41 UTC

Monitor this CVE ↗Full CVE monitoring on Pro and Business

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.

Description supplied by CVE Program. Formatting is simplified; follow the original advisory for full details.

Affected software and versions

Source-provided software and version information
SoftwareVersion informationFixed version
rubygem-safemodeRed Hatunaffected: 0:1.5.0-2.el8sat to < *See vendor advisory
rubygem-safemodeRed Hatunaffected: 0:1.5.0-2.el9sat to < *See vendor advisory
foremanRed Hatunaffected: 0:3.14.0.22-1.el9sat to < *See vendor advisory
python-dynaconfRed Hatunaffected: 0:3.2.13-1.el9pc to < *See vendor advisory
python-gitpythonRed Hatunaffected: 0:3.1.62-1.el9pc to < *See vendor advisory
python-lxmlRed Hatunaffected: 0:5.3.1-2.el9pc to < *See vendor advisory
python-sqlparseRed Hatunaffected: 0:0.6.0-1.el9pc to < *See vendor advisory
rubygem-foreman_remote_executionRed Hatunaffected: 0:15.0.2-2.el9sat to < *See vendor advisory
rubygem-hammer_cliRed Hatunaffected: 0:3.14.0-2.el9sat to < *See vendor advisory
rubygem-katelloRed Hatunaffected: 0:4.16.0.20-1.el9sat to < *See vendor advisory
rubygem-safemodeRed Hatunaffected: 0:1.5.0-2.el9sat to < *See vendor advisory
satelliteRed Hatunaffected: 0:6.17.12-1.el9sat to < *See vendor advisory
yggdrasil-worker-forwarderRed Hatunaffected: 0:0.1.0-2.1.el9sat to < *See vendor advisory
rubygem-safemodeRed Hatunaffected: 0:1.5.0-2.el9sat to < *See vendor advisory
foremanRed Hatunaffected: 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.

CISA data retrieved 2026-11-06 16:38 UTC. Check CISA ↗

How to respond

  1. Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
  2. 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.
  3. Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.

Sources and remediation references

This public advisory does not determine whether a particular server is affected. Records are refreshed as sources change; verify urgent decisions against the original advisory.

← Browse the public CVE feed