Description
A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. The request_id parameter is passed to an underlying system command (typically grep) without adequate shell neutralization. While the task is intended to fetch specific log entries, an attacker with sudo permissions to execute this rake task can inject shell metacharacters (such as ;, ", or |) to break out of the intended command and execute arbitrary code.
CVSS breakdown
CVSS 3.1
Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
Affected products
- RedHat / satellite6.16 – 6.16.4
- RedHat / satellite6.0 – 6.0
- theforeman / foreman
References
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2026:74503
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2026:74504
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2026:74505
- VENDOR_ADVISORYhttps://access.redhat.com/errata/RHSA-2026:74506
- VENDOR_ADVISORYhttps://access.redhat.com/security/cve/CVE-2026-12540
- MISChttps://bugzilla.redhat.com/show_bug.cgi?id=2489969
Updated 22m ago · 8 sources