CVE-2026-12541
Foreman: command injection in foreman-rake database tasks
- State
- Published
- Severity
- 8.2 High
- Published
- Oct 1, 2026
- Updated
- Oct 7, 2026
- Reserved
- Jun 17, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 8.2 High | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H | redhat |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Products
| Product | Versions |
|---|---|
Red Hat Satellite 6.16 for RHEL 8Red Hat |
|
Red Hat Satellite 6.16 for RHEL 9Red Hat |
|
Red Hat Satellite 6.17 for RHEL 9Red Hat |
|
Red Hat Satellite 6.18 for RHEL 9Red Hat |
|
Red Hat Satellite 6.19 for RHEL 9Red Hat |
|
Red Hat Satellite 6Red Hat |
References
- RHSA-2026:74503vendor-advisory
- RHSA-2026:74504vendor-advisory
- RHSA-2026:74505vendor-advisory
- RHSA-2026:74506vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-12541vdb-entry
- RHBZ#2489970issue-tracking
- http://www.openwall.com/lists/oss-security/2026/10/07/8
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.