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.
Fix
Patch, vendor advisory and mitigation references on NVD 7
- https://access.redhat.com/errata/RHSA-2026:74503 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74504 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74505 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74506 Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-12542 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2489971 Issue Tracking, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2026/10/07/7 Mailing List, Patch, Third Party Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.8 · redhat, theforemanNVD modified 2026-10-16 13:19
Affected (CPE criteria) 4
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*cpe:2.3:a:theforeman:foreman:5.0.0:*:*:*:*:*:*:*cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*
References 7
- https://access.redhat.com/errata/RHSA-2026:74503 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74504 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74505 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74506 Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-12542 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2489971 Issue Tracking, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2026/10/07/7 Mailing List, Patch, Third Party Advisory