CVE-2022-3874 Os command injection via ct_command and fcct_command
An authenticated admin can execute arbitrary OS commands via CoreOS configuration templates in Foreman.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-3874?
CVE-2022-3874 is a high-severity command injection vulnerability in Redhat Satellite, published on 22 Sep 2023. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2022-3874?
It affects 2 products.
Products include Redhat Satellite, Theforeman Foreman.
How do I fix CVE-2022-3874?
Apply the vendor's patch.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-3874 being exploited?
There is no known exploitation of CVE-2022-3874 in the wild and no public exploit code.
Other vulnerabilities in Redhat Satellite
- CVE-2024-7012 Puppet-foreman: an authentication bypass vulnerability exists in foreman
- CVE-2024-7923 Puppet-pulpcore: an authentication bypass vulnerability exists in pulpcore
- CVE-2026-96659 Foreman: excessive permissions for viewer role on preview
- CVE-2023-0118 Foreman: arbitrary code execution through templates
- CVE-2008-2369 Hardcoded credentials in n/a