RCE in Theforeman Foreman
CVE-2026-12542
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.006, 47.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Theforeman Foreman — versions 5.0.0
- Red Hat Satellite 6
- Red Hat Satellite — versions 6.0
Weakness classification (CWE)
References
- access.redhat.com/errata/RHSA-2026:74503 (vendor-advisory, Vendor Advisory)
- access.redhat.com/security/cve/CVE-2026-12542 (vdb-entry, Vendor Advisory)
- bugzilla.redhat.com/show_bug.cgi (issue-tracking, Issue Tracking, Vendor Advisory)
- access.redhat.com/errata/RHSA-2026:74504 (vendor-advisory, Vendor Advisory)
- access.redhat.com/errata/RHSA-2026:74506 (vendor-advisory, Vendor Advisory)
- access.redhat.com/errata/RHSA-2026:74505 (vendor-advisory, Vendor Advisory)
- www.openwall.com/lists/oss-security/2026/10/07/7 (Patch, Mailing List, Third Party Advisory)