CVE-2026-12540 Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
HighCVSS 8.2
EPSS 1.2%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
10 packages: 7 fixed, 1 partially fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/satellite:el8/foreman(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| theforeman foreman | All versions | No fix listed | No fix yet |
| redhat satellite | < 0:3.12.0.23-1.el8sat; < 0:3.12.0.23-1.el9sat; < 0:3.14.0.22-1.el9sat; < 0:3.16.0.25-1.el9sat +7 more | 0:3.12.0.23-1.el8sat, 0:3.12.0.23-1.el9sat, 0:3.14.0.22-1.el9sat, 0:3.16.0.25-1.el9sat, 0:3.18.0.14-1.el9sat, 6.16.4, 6.17.12, 6.18.10, 6.19.5 | Partially fixed |
| redhat satellite capsule | < 0:3.12.0.23-1.el8sat; < 0:3.12.0.23-1.el9sat; < 0:3.14.0.22-1.el9sat; < 0:3.16.0.25-1.el9sat +1 more | 0:3.12.0.23-1.el8sat, 0:3.12.0.23-1.el9sat, 0:3.14.0.22-1.el9sat, 0:3.16.0.25-1.el9sat, 0:3.18.0.14-1.el9sat | Fixed |
| redhat satellite utils | < 0:3.12.0.23-1.el8sat; < 0:3.12.0.23-1.el9sat; < 0:3.14.0.22-1.el9sat; < 0:3.16.0.25-1.el9sat +1 more | 0:3.12.0.23-1.el8sat, 0:3.12.0.23-1.el9sat, 0:3.14.0.22-1.el9sat, 0:3.16.0.25-1.el9sat, 0:3.18.0.14-1.el9sat | Fixed |
| redhat/foreman(Red Hat satellite_utils 6.16 el8) | < 3.12.0.23-1.el8sat | 3.12.0.23-1.el8sat | Fixed |
| redhat/foreman(Red Hat satellite_utils 6.16 el9) | < 3.12.0.23-1.el9sat | 3.12.0.23-1.el9sat | Fixed |
| redhat/foreman(Red Hat satellite_utils 6.17 el9) | < 3.14.0.22-1.el9sat | 3.14.0.22-1.el9sat | Fixed |
| redhat/foreman(Red Hat satellite_utils 6.18 el9) | < 3.16.0.25-1.el9sat | 3.16.0.25-1.el9sat | Fixed |
| redhat/foreman(Red Hat satellite_utils 6.19 el9) | < 3.18.0.14-1.el9sat | 3.18.0.14-1.el9sat | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat satellite | < 0:3.12.0.23-1.el8sat | 0:3.12.0.23-1.el8sat |
| redhat satellite capsule | < 0:3.12.0.23-1.el8sat | 0:3.12.0.23-1.el8sat |
| redhat satellite utils | < 0:3.12.0.23-1.el8sat | 0:3.12.0.23-1.el8sat |
| redhat satellite | < 0:3.12.0.23-1.el9sat | 0:3.12.0.23-1.el9sat |
| redhat satellite capsule | < 0:3.12.0.23-1.el9sat | 0:3.12.0.23-1.el9sat |
| redhat satellite utils | < 0:3.12.0.23-1.el9sat | 0:3.12.0.23-1.el9sat |
| redhat satellite | < 0:3.14.0.22-1.el9sat | 0:3.14.0.22-1.el9sat |
| redhat satellite capsule | < 0:3.14.0.22-1.el9sat | 0:3.14.0.22-1.el9sat |
| redhat satellite utils | < 0:3.14.0.22-1.el9sat | 0:3.14.0.22-1.el9sat |
| redhat satellite | < 0:3.16.0.25-1.el9sat | 0:3.16.0.25-1.el9sat |
| redhat satellite capsule | < 0:3.16.0.25-1.el9sat | 0:3.16.0.25-1.el9sat |
| redhat satellite utils | < 0:3.16.0.25-1.el9sat | 0:3.16.0.25-1.el9sat |
| redhat satellite | < 0:3.18.0.14-1.el9sat | 0:3.18.0.14-1.el9sat |
| redhat satellite capsule | < 0:3.18.0.14-1.el9sat | 0:3.18.0.14-1.el9sat |
| redhat satellite utils | < 0:3.18.0.14-1.el9sat | 0:3.18.0.14-1.el9sat |
| redhat satellite | All versions | No fix listed |
| redhat/foreman(Red Hat:satellite_utils:6.16::el8) | < 3.12.0.23-1.el8sat | 3.12.0.23-1.el8sat |
| redhat/foreman(Red Hat:satellite_utils:6.16::el9) | < 3.12.0.23-1.el9sat | 3.12.0.23-1.el9sat |
| redhat/foreman(Red Hat:satellite_utils:6.17::el9) | < 3.14.0.22-1.el9sat | 3.14.0.22-1.el9sat |
| redhat/foreman(Red Hat:satellite_utils:6.18::el9) | < 3.16.0.25-1.el9sat | 3.16.0.25-1.el9sat |
| redhat/foreman(Red Hat:satellite_utils:6.19::el9) | < 3.18.0.14-1.el9sat | 3.18.0.14-1.el9sat |
| redhat/satellite:el8/foreman(Red Hat:satellite:6) | All versions | No fix listed |
| redhat satellite | >= 6.16, < 6.16.4 | 6.16.4 |
| redhat satellite | >= 6.17, < 6.17.12 | 6.17.12 |
| redhat satellite | >= 6.19, < 6.19.5 | 6.19.5 |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat satellite | >= 6.18, < 6.18.10 | 6.18.10 |
| redhat satellite | = 6.0 | No fix listed |
| theforeman foreman | All versions | No fix listed |
References
- RHSA-2026:74503 patch vendor-advisory
- RHSA-2026:74504 patch vendor-advisory
- RHSA-2026:74505 patch vendor-advisory
- RHSA-2026:74506 patch vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2489969 issue-tracking mitigation vendor-advisory
- www.openwall.com third-party-advisory
- www.cve.org
- nvd.nist.gov
- ENISA EUVD EUVD-2026-90916 third-party-advisory