CVE-2026-12541
8.2high
Foreman: command injection in foreman-rake database tasks
- Severity
- 8.2high CVSS:3.1 by redhat
- Exploit likelihood
- 1.24% (higher than 70% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| foreman | Not specified Not affected: from 0:3.12.0.23-1.el8sat before *, from 0:3.12.0.23-1.el9sat before *, from 0:3.14.0.22-1.el9sat before *, from 0:3.16.0.25-1.el9sat before *, from 0:3.18.0.14-1.el9sat before * | CVE List |
| satellite:el8/foreman | Not specified | CVE List |
| redhat satellite | 6.0, from 6.16 before 6.16.4, from 6.17 before 6.17.12, from 6.19 before 6.19.5, from 6.18 before 6.18.10 | NVD |
| theforeman foreman | Not specified | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
| https://access.redhat.com/errata/RHSA-2026:74503 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:74504 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:74505 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:74506 | vendor-advisory | |
| https://access.redhat.com/security/cve/CVE-2026-12541 | vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2489970 | issue-tracking, mitigation, vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2026/10/07/8 | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-12541 changed 2026-11-26 | CVE Terms of Use |
| NVD | CVE-2026-12541 changed 2026-11-26 | Public domain |