CVE-2023-0118 json
Foreman: arbitrary code execution through templates
published 2023-09-20 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-12208
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
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.
Patch / fix
- Red Hat Red Hat Satellite 6.11 for RHEL 7 0:3.1.1.27-1.el7sat
- Red Hat Red Hat Satellite 6.11 for RHEL 8 0:3.1.1.27-1.el8sat
- Red Hat Red Hat Satellite 6.12 for RHEL 8 0:1.3.8-1.el8sat
- Red Hat Red Hat Satellite 6.13 for RHEL 8 0:1.3.8-1.el8sat
- Red Hat Red Hat Satellite 6.14 for RHEL 8 0:3.7.0.9-1.el8sat
- foreman satellite utils 6.14, satellite capsule 6.14, satellite 6.14 3.7.0.9-1.el8sat
- foreman-cli satellite utils 6.14, satellite 6.14 3.7.0.9-1.el8sat
- foreman-ec2 satellite 6.14 3.7.0.9-1.el8sat
- rubygem-git satellite 6.14, satellite 6.12 1.18.0-1.el8sat
- puppet-agent satellite capsule 6.14, satellite capsule 6.12, satellite capsule 6.11 +3 more 7.26.0-3.el8sat
- puppetserver satellite capsule 6.14, satellite 6.14 7.11.0-1.el8sat
- rubygem-rack satellite capsule 6.14, satellite 6.14 2.2.7-1.el8sat
- foreman-ovirt satellite 6.14 3.7.0.9-1.el8sat
red hat advisories RHSA-2023:6818RHSA-2023:5980RHSA-2023:5979RHSA-2023:4466
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-0118 updated cvss 9.1
Foreman: Arbitrary code execution through templates
-
Red Hat Satellite 6.11 for RHEL 7 foreman 3.1.1.27-1.el7sat, foreman-cli 3.1.1.27-1.el7sat, foreman-ec2 3.1.1.27-1.el7sat, foreman-gce 3.1.1.27-1.el7sat, foreman-ovirt 3.1.1.27-1.el7sat, foreman-vmware 3.1.1.27-1.el7sat, +7 more Red Hat Satellite 6.11 for RHEL 8 foreman 3.1.1.27-1.el8sat, foreman-cli 3.1.1.27-1.el8sat, foreman-ec2 3.1.1.27-1.el8sat, foreman-gce 3.1.1.27-1.el8sat, foreman-ovirt 3.1.1.27-1.el8sat, foreman-vmware 3.1.1.27-1.el8sat, +7 morefixed: vendor fix RHSA-2023:5980
-
Red Hat Satellite 6.12 for RHEL 8 rubygem-safemode 1.3.8-1.el8satfixed: vendor fix RHSA-2023:5979
-
Red Hat Satellite 6.13 for RHEL 8 rubygem-safemode 1.3.8-1.el8satfixed: vendor fix RHSA-2023:4466
-
Red Hat Satellite 6.14 for RHEL 8 foreman 3.7.0.9-1.el8sat, foreman-cli 3.7.0.9-1.el8sat, foreman-ec2 3.7.0.9-1.el8sat, foreman-ovirt 3.7.0.9-1.el8sat, foreman-redis 3.7.0.9-1.el8sat, foreman-vmware 3.7.0.9-1.el8sat, +7 morefixed: vendor fix RHSA-2023:6818
-
Red Hat Satellite 6.11 for RHEL 7 satellite 6.11.5.6-1.el7sat, puppet-agent 7.26.0-3.el7sat, satellite-cli 6.11.5.6-1.el7sat, tfm-rubygem-git 1.18.0-0.1.el7sat, satellite-common 6.11.5.6-1.el7sat, satellite-capsule 6.11.5.6-1.el7sat, +3 more Red Hat Satellite 6.11 for RHEL 8 satellite 6.11.5.6-1.el8sat, puppet-agent 7.26.0-3.el8sat, rubygem-git 1.18.0-0.1.el8sat, satellite-cli 6.11.5.6-1.el8sat, rubygem-rchardet 1.8.0-0.1.el8sat, rubygem-safemode 1.3.8-0.1.el8sat, +3 more Red Hat Satellite 6.12 for RHEL 8 foreman 3.3.0.23-1.el8sat, rubygem-git 1.18.0-1.el8sat, satellite 6.12.5.2-1.el8sat, puppet-agent 7.26.0-3.el8sat, foreman-cli 3.3.0.23-1.el8sat, foreman-ec2 3.3.0.23-1.el8sat, +14 more Red Hat Satellite 6.13 for RHEL 8 foreman 3.5.1.19-1.el8sat, satellite 6.13.3-1.el8sat, python-future 0.18.3-1.el8pc, foreman-cli 3.5.1.19-1.el8sat, foreman-ec2 3.5.1.19-1.el8sat, satellite-cli 6.13.3-1.el8sat, +21 more Red Hat Satellite 6.14 for RHEL 8 cjson 1.7.14-5.el8sat, katello 4.9.0-1.el8sat, libsolv 0.7.22-4.el8pc, libcomps 0.1.18-4.el8pc, python-idna 3.3-2.el8pc, candlepin 4.3.1-1.el8sat, +656 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
1.38% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
Affected products
- Red Hat Red Hat Satellite 6.11 for RHEL 7
- Red Hat Red Hat Satellite 6.11 for RHEL 8
- Red Hat Red Hat Satellite 6.12 for RHEL 8
- Red Hat Red Hat Satellite 6.13 for RHEL 8
- Red Hat Red Hat Satellite 6.14 for RHEL 8
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
access.redhat.com
/errata/RHSA-2023:4466
vendor-advisory, release-notes, third-party-advisory
-
access.redhat.com
/errata/RHSA-2023:5979
vendor-advisory
-
access.redhat.com
/errata/RHSA-2023:5980
vendor-advisory
-
access.redhat.com
/errata/RHSA-2023:6818
vendor-advisory
-
access.redhat.com
/security/cve/CVE-2023-0118
vdb-entry, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2159291
issue-tracking, third-party-advisory
Sources
- CVE List CVE-2023-0118
- NVD CVE-2023-0118
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.