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

Published Jan 9, 2023
·
Updated

An admin user on Foreman can bypass safe mode in templates and execute arbitrary code via the Report Templates function. When changing the "template" JSON value in the POST request, an attacker can exploit the bind() call in safemode to inject an OS command in the underlying operating system.

Other sources

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.

MITRE

Affected Software

6 affected componentsFixes available
redhat/foreman<6.13.3
6.13.3
theforeman foreman
redhat Satellite>=6.13<6.13.3
redhat Enterprise Linux=8.0
All of the following
redhat Satellite>=6.13<6.13.3
redhat Enterprise Linux=8.0

Event History

Sep 20, 2023
CVE Published
via MITRE·01:39 PM
Data Sourced
via MITRE·01:39 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is CVE-2023-0118?

CVE-2023-0118 is an arbitrary code execution flaw found in Foreman that allows an admin user to bypass safe mode in templates and execute arbitrary code on the underlying operating system.

2

How severe is CVE-2023-0118?

CVE-2023-0118 has a severity rating of 9.1, which is considered critical.

3

Which software is affected by CVE-2023-0118?

Foreman, Redhat Satellite (version 6.13.3 and earlier) are affected by CVE-2023-0118.

4

How can an admin user exploit CVE-2023-0118?

An admin user can exploit CVE-2023-0118 by bypassing safe mode in templates and executing arbitrary code on the underlying operating system.

5

Are Redhat Enterprise Linux 8.0 systems vulnerable to CVE-2023-0118?

No, Redhat Enterprise Linux 8.0 systems are not vulnerable to CVE-2023-0118.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203