CVE-2026-96658 Foreman: foreman: arbitrary code execution via safemode sandbox bypass
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.
Other vulnerabilities in Redhat Satellite
- CVE-2024-7012 Puppet-foreman: an authentication bypass vulnerability exists in foreman
- CVE-2024-7923 Puppet-pulpcore: an authentication bypass vulnerability exists in pulpcore
- CVE-2026-96659 Foreman: excessive permissions for viewer role on preview
- CVE-2023-0118 Foreman: arbitrary code execution through templates
- CVE-2008-2369 Hardcoded credentials in n/a
Sources
Also known as GHSA-g2wg-rx2f-4j5r.