Home / foreman / foreman / CVE-2022-3874
CVE-2022-3874: is it exploited, and which versions of foreman are affected and fixed?
CVE-2022-3874 is an OS command injection vulnerability in foreman. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: foreman all versions (the record names no range) and Red Hat Satellite 6 all versions (the record names no range) (CVE record by redhat). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (8.0, CVSS 3.1, from redhat).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 28, 2026, 19:51 UTC and NVD November 19, 2026, 07:35 UTC.
What is CVE-2022-3874?
Os command injection via ct_command and fcct_command
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.
From the CVE record by redhat, last updated September 24, 2024, 15:01 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| foreman | all versions (the record names no range) | ||
| Red Hat | Red Hat Satellite 6 foreman | all versions (the record names no range) |
As the CVE record by redhat states it, last updated September 24, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| redhat | satellite | 6.0 | application |
| theforeman | foreman | all versions | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:00 UTC.
How severe is CVE-2022-3874?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H | redhat |
| Critical 9.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-3874 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, September 24, 2024)
- EPSS
- 2.17% probability of exploitation activity in the next 30 days, percentile 82.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- https://access.redhat.com/security/cve/CVE-2022-3874 vdb-entry, x_refsource_REDHAT
- RHBZ#2140577 issue-tracking, x_refsource_REDHAT
Who found and reported it?
- This issue was discovered by Andrew Danau (Onsec.io) and Evgeni Golov (Red Hat). (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- November 7, 2022
- Published
- September 22, 2023, 13:56 UTC
- CVE record updated
- September 24, 2024, 15:01 UTC by redhat
- NVD
- Modified, last modified June 17, 2026, 05:00 UTC
- Last checked
- CVE list November 28, 2026, 19:51 UTC; NVD November 19, 2026, 07:35 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect foreman?
- Sep 20, 2023CVE-2023-0462 foreman: code injection (remote code execution)
- Aug 26, 2022CVE-2021-20260 foreman: information disclosure
- Aug 22, 2022CVE-2021-3590 foreman: information disclosure
- Dec 23, 2021CVE-2021-3584 foreman: OS command injection
- Jun 7, 2021CVE-2021-20259 foreman: information disclosure
- Jun 3, 2021CVE-2021-3469 Foreman: incorrect authorization
- Apr 26, 2021CVE-2021-3494 foreman: sensitive data sent in clear text
- Dec 11, 2019CVE-2014-0091 Foreman: improper input validation
Questions about CVE-2022-3874
Is CVE-2022-3874 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 2.17% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of foreman are affected by CVE-2022-3874?
foreman all versions (the record names no range) and Red Hat Satellite 6 all versions (the record names no range), per the CVE record by redhat. The tables above give every range the sources list.
Which version fixes CVE-2022-3874?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2022-3874?
High (8.0, CVSS 3.1, from redhat). The severity table above shows each score with its source.
Where is the official record of CVE-2022-3874?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.