Bug 2159291 (CVE-2023-0118) - CVE-2023-0118 Foreman: Arbitrary code execution through templates
Summary: CVE-2023-0118 Foreman: Arbitrary code execution through templates
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2023-0118
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Adam Ruzicka
QA Contact:
URL:
Whiteboard:
Depends On: 2159414 2159416 2159417 2159656 2159659 2239686
Blocks: 2152810
TreeView+ depends on / blocked
 
Reported: 2023-01-09 10:46 UTC by ybuenos
Modified: 2024-04-17 10:55 UTC (History)
13 users (show)

Fixed In Version: foreman 6.13.3
Doc Type: If docs needed, set a value
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2023-08-03 18:09:22 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:4466 0 None None None 2023-08-03 13:30:17 UTC
Red Hat Product Errata RHSA-2023:5979 0 None None None 2023-10-20 18:43:15 UTC
Red Hat Product Errata RHSA-2023:5980 0 None None None 2023-10-20 18:43:57 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:17:02 UTC

Description ybuenos 2023-01-09 10:46:33 UTC
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.

Comment 7 errata-xmlrpc 2023-08-03 13:30:16 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.13 for RHEL 8

Via RHSA-2023:4466 https://access.redhat.com/errata/RHSA-2023:4466

Comment 8 Product Security DevOps Team 2023-08-03 18:09:19 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-0118

Comment 10 errata-xmlrpc 2023-10-20 18:43:14 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.12 for RHEL 8

Via RHSA-2023:5979 https://access.redhat.com/errata/RHSA-2023:5979

Comment 11 errata-xmlrpc 2023-10-20 18:43:56 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.11 for RHEL 7
  Red Hat Satellite 6.11 for RHEL 8

Via RHSA-2023:5980 https://access.redhat.com/errata/RHSA-2023:5980

Comment 12 errata-xmlrpc 2023-11-08 14:17:01 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.14 for RHEL 8

Via RHSA-2023:6818 https://access.redhat.com/errata/RHSA-2023:6818


Note You need to log in before you can comment on or make changes to this bug.