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

High 8.8 Published Updated

An authenticated attacker with low-level read permissions can bypass the safemode sandbox in Foreman to execute arbitrary code on the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-96658?

CVE-2026-96658 is a high-severity code injection vulnerability in Redhat Satellite, published on 1 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-94

Which versions are affected by CVE-2026-96658?

It affects 2 products.

Products include Redhat Satellite, Theforeman Foreman.

How do I fix CVE-2026-96658?

Apply the vendor's patch.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-96658 being exploited?

There is no known exploitation of CVE-2026-96658 in the wild and no public exploit code.

All Redhat Satellite vulnerabilities

Sources

Also known as GHSA-g2wg-rx2f-4j5r.

Is CVE-2026-96658 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free