# CVE-2022-3874: Os command injection via ct_command and fcct_command

- Severity: High 8.0 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.17%, higher than 82% of CVEs (2026-12-02)
- Published: 2023-09-22T13:56:54.314Z
- Modified: 2026-09-10T03:49:57.957Z
- Also known as: GHSA-9jfq-54vc-9rr2
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- foreman: no versions given
- foreman (RubyGems): up to 3.8.0
- redhat satellite: 6.0
- theforeman foreman: no versions given

## Every score

- redhat: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://access.redhat.com/security/cve/CVE-2022-3874> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2140577> (issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-3874> (advisory)
- <https://github.com/theforeman/foreman/pull/9836> (web)
- <https://github.com/theforeman/theforeman.org/pull/2101> (web)
- <https://github.com/theforeman/foreman> (package)

## Sources

- CVE List: [CVE-2022-3874](https://www.cve.org/CVERecord?id=CVE-2022-3874), CVE Terms of Use, modified 2024-09-24
- GitHub Advisory Database: [GHSA-9jfq-54vc-9rr2](https://github.com/advisories/GHSA-9jfq-54vc-9rr2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-3874](https://nvd.nist.gov/vuln/detail/CVE-2022-3874), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3874 · Whole record: https://cve.day/CVE-2022-3874.json · Rebuilt by cve.day 2026-11-25T22:58:19.621Z
