Vulnerabilities / CVE-2022-3874

critical

CVE-2022-3874

foreman: OS command injection via ct_command and fcct_command

Published Modified CWE 78
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high).

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.

Affected packages and fixed versions

SourcePackageFixed in
Red Hatforeman, foreman-cli, foreman-debug and 11 moreno fix listed
Show all 14 entries from 1 source
SourcePackageFixed in
Red Hatforemanno fix listed
Red Hatforeman-clino fix listed
Red Hatforeman-debugno fix listed
Red Hatforeman-dynflow-sidekiqno fix listed
Red Hatforeman-ec2no fix listed
Red Hatforeman-gceno fix listed
Red Hatforeman-journaldno fix listed
Red Hatforeman-libvirtno fix listed
Red Hatforeman-openstackno fix listed
Red Hatforeman-ovirtno fix listed
Red Hatforeman-postgresqlno fix listed
Red Hatforeman-serviceno fix listed
Red Hatforeman-telemetryno fix listed
Red Hatforeman-vmwareno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.