What’s Vulnerable › Vulnerabilities
CVE-2026-12542: Foreman: command injection in foreman-tail
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-01 · updated 2026-10-16
- Weakness: CWE-78
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.
Affected products
- Red Hat Satellite 6: from 6.16 before 6.16.4; from 6.17 before 6.17.12; from 6.19 before 6.19.5; from 6.18 before 6.18.10; 6.0 — fixed in 6.16.4, 6.17.12, 6.18.10, 6.19.5
- foreman: from 1.5.0 through 3.19.1; 5.0.0
How to fix
Upgrade to a fixed version: Red Hat Satellite 6 6.16.4, 6.17.12, 6.18.10, 6.19.5. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2026:74503
- https://access.redhat.com/errata/RHSA-2026:74504
- https://access.redhat.com/errata/RHSA-2026:74505
- https://access.redhat.com/errata/RHSA-2026:74506
- https://access.redhat.com/security/cve/CVE-2026-12542
- https://bugzilla.redhat.com/show_bug.cgi?id=2489971
- http://www.openwall.com/lists/oss-security/2026/10/07/7
Get alerted when CVE-2026-12542 or the next vulnerability affects your stack