CVE-2022-3874 json
Os command injection via ct_command and fcct_command
published 2023-09-22 3 y ago modified 2026-09-10 1 mo ago also GHSA-9jfq-54vc-9rr2 , EUVD-2023-2479
- cvss
- 8.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
A command injection flaw was found in foreman. This flaw allows an authenticated user with admin privileges on the foreman instance to transpile commands through CoreOS and Fedora CoreOS configurations in templates, possibly resulting in arbitrary command execution on the underlying operating system.
Patch / fix
- 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.13, satellite 6.12 1.18.0-1.el8sat
- puppet-agent satellite capsule 6.14, satellite capsule 6.13, satellite capsule 6.12 +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:5979RHSA-2023:5931
- github.com/theforeman/foreman#9836 pull request
- github.com/theforeman/theforeman.org#2101 pull request
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-2022-3874 updated cvss 9.1
foreman: OS command injection via ct_command and fcct_command
-
Red Hat Satellite 6.12 for RHEL 8 foreman 3.3.0.23-1.el8satfixed: vendor fix RHSA-2023:5979
-
Red Hat Satellite 6.13 for RHEL 8 foreman 3.5.1.23-1.el8sat, foreman-cli 3.5.1.23-1.el8sat, foreman-ec2 3.5.1.23-1.el8sat, foreman-ovirt 3.5.1.23-1.el8sat, foreman-vmware 3.5.1.23-1.el8sat, foreman-libvirt 3.5.1.23-1.el8sat, +6 morefixed: vendor fix RHSA-2023:5931
-
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.12 for RHEL 8 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, foreman-gce 3.3.0.23-1.el8sat, +14 more Red Hat Satellite 6.13 for RHEL 8 satellite 6.13.5-1.el8sat, rubygem-git 1.18.0-1.el8sat, puppet-agent 7.26.0-3.el8sat, python-django 3.2.21-1.el8pc, satellite-cli 6.13.5-1.el8sat, pulpcore-selinux 1.3.3-1.el8pc, +14 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
2.17% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.0 | CVSS:3.1/AV:N/AC:H/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
- n/a foreman
- Red Hat Red Hat Satellite 6
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/theforeman/foreman/pull/9836
web
-
github.com
/theforeman/theforeman.org/pull/2101
web
-
access.redhat.com
/security/cve/CVE-2022-3874
vdb-entry, web, vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2140577
issue-tracking, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-3874
advisory
-
github.com
/theforeman/foreman
package
Sources
- CVE List CVE-2022-3874
- GitHub Advisory GHSA-9jfq-54vc-9rr2
- NVD CVE-2022-3874
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.