CVE-2026-12540
Description
A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. The request_id parameter is passed to an underlying system command (typically grep) without adequate shell neutralization. While the task is intended to fetch specific log entries, an attacker with sudo permissions to execute this rake task can inject shell metacharacters (such as ;, ", or |) to break out of the intended command and execute arbitrary code.
How to fix
- redhat satellite6.16.4, 6.17.12, 6.19.5, 6.18.10 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| theforeman foreman | No range specified | — |
| redhat satellite | 6.16 ≤ v < 6.16.4, 6.17 ≤ v < 6.17.12, 6.19 ≤ v < 6.19.5, 6.18 ≤ v < 6.18.10, 6.0 | 6.16.4, 6.17.12, 6.19.5, 6.18.10 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.