Skip to content
NewA calmer, faster ZeroHour

CVE-2026-96658

Authenticated safemode bypass RCE in Foreman

CVSS 3.1
8.8 high
EPSS
—
Published
·
Modified
Analyze CVE-2026-96658 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

A critical flaw in Foreman lets an authenticated user with only low-level permissions bypass the safemode sandbox in the templating engine. Improper handling of delegated methods allows the attacker to add unauthorized functions to the allowed execution list and then run arbitrary commands on the Foreman host. Successful exploitation yields remote code execution with high impact on confidentiality, integrity, and availability, and the CVSS scope is changed (network, low complexity, no user interaction). Affected version ranges are not specified in the provided data; operators of Foreman (and downstream products built on it) should treat unpatched templating hosts as in scope until vendors publish fixed releases. It is not listed in CISA KEV and no public proof-of-concept is known.

What to do: Apply the Foreman security update from the Foreman Project or your vendor (including Red Hat, which assigned this CVE) as soon as a fixed build is published for your release. Until then, restrict who can create or edit templates and other low-privilege roles that reach the templating engine, and review recent template changes and host command history for unexpected execution.

ProductAffected
Foreman Project Foreman—
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

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.

Vendors
redhattheforeman
Products
satellite, foreman
Weakness
CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

2 stories