Skip to content
Fencer Intel
high 8.0

CVE-2022-3874 json

Os command injection via ct_command and fcct_command

published 3y ago modified last mo. 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

Is CVE-2022-3874 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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.el8sat
    fixed: 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 more
    fixed: 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 more
    fixed: 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 more
    not 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
2y ago

Exploit prediction

2.17% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-09).

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

Sources

Fencer Intel 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.