CWE
78
Advisory Published
CVE Published
Updated

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

First published: Mon Jan 09 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.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Theforeman Foreman
Redhat Satellite>=6.13<6.13.3
Redhat Enterprise Linux=8.0
redhat/foreman<6.13.3
6.13.3
All of
Redhat Satellite>=6.13<6.13.3
Redhat Enterprise Linux=8.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

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

  • How severe is CVE-2023-0118?

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

  • Which software is affected by CVE-2023-0118?

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

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

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203