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

High 8.0 Published Updated

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.

All Redhat Satellite vulnerabilities

Sources

Is CVE-2022-3874 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free