CVE-2026-12541 Foreman: command injection in foreman-rake database tasks
Attackers with foreman-rake permissions can execute arbitrary OS commands via unsanitized input in database dump and import tasks.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-12541?
CVE-2026-12541 is a high-severity command injection vulnerability in Redhat Satellite, published on 1 Oct 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2026-12541?
It affects 2 products.
Products include Redhat Satellite, Theforeman Foreman.
How do I fix CVE-2026-12541?
Apply the vendor's patch.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-12541 being exploited?
There is no known exploitation of CVE-2026-12541 in the wild and no public exploit code.
Other vulnerabilities in Redhat Satellite
- CVE-2024-7012 Puppet-foreman: an authentication bypass vulnerability exists in foreman
- CVE-2024-7923 Puppet-pulpcore: an authentication bypass vulnerability exists in pulpcore
- CVE-2026-96659 Foreman: excessive permissions for viewer role on preview
- CVE-2023-0118 Foreman: arbitrary code execution through templates
- CVE-2008-2369 Hardcoded credentials in n/a
Sources
Also known as GHSA-rcq3-9wpf-p347.