RCE in Theforeman Foreman
CVE-2026-12540
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.012, 69.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Theforeman Foreman
- Red Hat Satellite 6
- Red Hat Satellite — versions 6.0
Weakness classification (CWE)
References
- RHSA-2026:74503 (vendor-advisory, Vendor Advisory)
- access.redhat.com/security/cve/CVE-2026-12540 (vdb-entry, Vendor Advisory)
- RHBZ#2489969 (issue-tracking, Mitigation, Issue Tracking, Vendor Advisory)
- RHSA-2026:74504 (vendor-advisory, Vendor Advisory)
- RHSA-2026:74506 (vendor-advisory, Vendor Advisory)
- RHSA-2026:74505 (vendor-advisory, Vendor Advisory)
- www.openwall.com/lists/oss-security/2026/10/07/9 (Third Party Advisory)