CVE-2026-12542
Foreman: command injection in foreman-tail
- Medium 5.3
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.
Key facts
- Published
- 1 Oct 2026
- Last changed
- 9 Nov 2026
- Assigned by
- redhat
- EPSS
- 0.563% likely to be exploited in the next 30 days, higher than 47.442% of CVEs (scores for 17 Nov 2026)
- SSVC (CISA)
- Exploitation: none; Automatable: no; Technical impact: partial
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 5.3CVSS 3.1, Mediumfrom the CNA (redhat)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
What to do
- Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.CNA workaround statement
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Satellite 6.16 for RHEL 8 |
|
| Red Hat | Red Hat Satellite 6.16 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6.18 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6.19 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6 |
|
Timeline
- 17 Jun 2026 Reported to Red Hat.
- 1 Oct 2026 Made public.
- 1 Oct 2026 Published
Weakness
Practice this bug class
HackZoneLabs has a hands-on lab on OS command injection (CWE-78).