CVE-2026-12541
Foreman: command injection in foreman-rake database tasks
- High 8.2
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.
Key facts
- Published
- 1 Oct 2026
- Last changed
- 2 Nov 2026
- Assigned by
- redhat
- EPSS
- 1.236% likely to be exploited in the next 30 days, higher than 69.586% of CVEs (scores for 17 Nov 2026)
- SSVC (CISA)
- Exploitation: none; Automatable: no; Technical impact: total
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 8.2CVSS 3.1, Highfrom the CNA (redhat)
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
What to do
- Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.CNA workaround statement
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Satellite 6.16 for RHEL 8 |
|
| Red Hat | Red Hat Satellite 6.16 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6.18 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6.19 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6 |
|
Timeline
- 17 Jun 2026 Reported to Red Hat.
- 1 Oct 2026 Made public.
- 1 Oct 2026 Published
Weakness
Practice this bug class
HackZoneLabs has a hands-on lab on OS command injection (CWE-78).