CVE-2023-0118 Foreman: arbitrary code execution through templates
An admin user can bypass template safe mode to execute arbitrary code on the underlying operating system in Red Hat Satellite.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-0118?
CVE-2023-0118 is a critical code injection vulnerability in Redhat Satellite, published on 20 Sep 2023. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
An arbitrary code execution flaw was found in Foreman. This flaw allows an admin user to bypass safe mode in templates and execute arbitrary code on the underlying operating system.
Weakness: CWE-78
Which versions are affected by CVE-2023-0118?
It affects 2 products.
Products include Redhat Satellite, Theforeman Foreman.
How do I fix CVE-2023-0118?
Apply the vendor's patch.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-0118 being exploited?
There is no known exploitation of CVE-2023-0118 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-2008-2369 Hardcoded credentials in n/a
- CVE-2026-96658 Foreman: foreman: arbitrary code execution via safemode sandbox bypass
Sources
Also known as GHSA-pwc8-3cc6-gg8v.