{"id":"CVE-2023-0118","aliases":["CVE-2023-0118"],"related":[],"kind":"vulnerability","state":"published","title":"Foreman: arbitrary code execution through templates","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se encontró una falla en la ejecución de código arbitrario en Foreman. Esta falla permite a un usuario administrador omitir el modo seguro en las plantillas y ejecutar código arbitrario en el sistema operativo subyacente.","source":"nvd"}],"published":"2023-09-20T13:39:27.756Z","modified":"2026-06-17T05:24:49.283Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-78"],"affected":[{"ranges":[],"package":"foreman","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.1.1.27-1.el7sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.11 for RHEL 7","package":"foreman","cpe":"cpe:/a:redhat:satellite_capsule:6.11::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.1.1.27-1.el7sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.11 for RHEL 7","package":"foreman","cpe":"cpe:/a:redhat:satellite_capsule:6.11::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.1.1.27-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.11 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite_capsule:6.11::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.1.1.27-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.11 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite_capsule:6.11::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.3.8-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.12 for RHEL 8","package":"rubygem-safemode","cpe":"cpe:/a:redhat:satellite:6.12::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.3.8-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.13 for RHEL 8","package":"rubygem-safemode","cpe":"cpe:/a:redhat:satellite_capsule:6.13::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.7.0.9-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.14 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite_maintenance:6.14::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.7.0.9-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.14 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite_maintenance:6.14::el8","source":"cvelist"},{"ranges":[],"vendor":"theforeman","product":"foreman","cpe":"cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"6.13","fixed":"6.13.3"}],"vendor":"redhat","product":"satellite","cpe":"cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:4466","tags":["release-notes","third-party-advisory","vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5979","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:5980","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2023:6818","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2023-0118","tags":["third-party-advisory","vdb-entry","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2159291","tags":["issue-tracking","third-party-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Red Hat would like to thank Andrew Danau (Onsec.io) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-08-07T18:09:30.819Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-0118","url":"https://www.cve.org/CVERecord?id=CVE-2023-0118","licence":"CVE Terms of Use","modified":"2024-09-17T13:51:28.373Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-0118","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0118","licence":"Public domain","modified":"2026-06-17T05:24:49.283Z"}],"updatedAt":"2026-11-25T22:58:28.017Z","epss":{"score":0.01393,"percentile":0.73206,"date":"2026-12-02T12:00:21.000Z"}}