CVE-2026-12542 Foreman: command injection in foreman-tail
HighCVSS 7.8
EPSS 0.56%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
Description
A flaw was found in Foreman. The foreman-tail utility is vulnerable to OS command injection due to the unsafe use of the eval command. The script takes user-supplied arguments and incorporates them directly into a string that is then executed by eval to expand file paths. Because the input is not sanitized or quoted, a local attacker can inject shell metacharacters (e.g., ;, &, |) to execute arbitrary system commands.
Upgrade path
10 packages: 8 fixed, 1 partially fixed, 1 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 |
| 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 |
| theforeman foreman | = 5.0.0; >= 1.5.0, <= 3.19.1 | after 3.19.1 | 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 4 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 | >= 1.5.0, <= 3.19.1 | No fix listed |
| theforeman foreman | = 5.0.0 | 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#2489971 issue-tracking vendor-advisory
- www.openwall.com mailing-list patch third-party-advisory
- www.cve.org
- nvd.nist.gov
- ENISA EUVD EUVD-2026-90969 third-party-advisory