CVE-2023-0118 Foreman: arbitrary code execution through templates

Critical 9.1 Published Updated

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.

All Redhat Satellite vulnerabilities

Sources

Also known as GHSA-pwc8-3cc6-gg8v.

Is CVE-2023-0118 in your software?

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

Check your SBOMs for free