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

- Severity: Critical 9.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.39%, higher than 73% of CVEs (2026-12-02)
- Published: 2023-09-20T13:39:27.756Z
- Modified: 2026-06-17T05:24:49.283Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- foreman: no versions given (not affected: from 0:3.1.1.27-1.el7sat before *; from 0:3.1.1.27-1.el8sat before *; from 0:3.7.0.9-1.el8sat before *)
- rubygem-safemode: no versions given (not affected: from 0:1.3.8-1.el8sat before *)
- theforeman foreman: no versions given
- redhat satellite: from 6.13 before 6.13.3

## Every score

- redhat: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2023:4466> (release-notes, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5979> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:5980> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:6818> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-0118> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2159291> (issue-tracking, third-party-advisory)

## Sources

- CVE List: [CVE-2023-0118](https://www.cve.org/CVERecord?id=CVE-2023-0118), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2023-0118](https://nvd.nist.gov/vuln/detail/CVE-2023-0118), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-0118 · Whole record: https://cve.day/CVE-2023-0118.json · Rebuilt by cve.day 2026-11-25T22:58:28.017Z
