RCE in Theforeman Foreman
CVE-2026-12541
A flaw was found in Foreman. OS command injection vulnerabilities exist in the foreman-rake db:dump and db:import_dump tasks. The application fails to properly sanitize user-supplied input in the destination parameter (during backups) and the file parameter (during imports) before passing them to a Ruby system() call for execution. An attacker with permissions to execute foreman-rake (e.g., via a restricted sudo configuration) can append malicious shell commands to the provided file paths.
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-12541 (vdb-entry, Vendor Advisory)
- RHBZ#2489970 (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/8 (Third Party Advisory)