# CVE-2026-12542: Foreman: command injection in foreman-tail

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-01 · Modified: 2026-11-26
- Record: https://cvemate.com/vulnerability/CVE-2026-12542 · JSON: https://cvemate.com/vulnerability/CVE-2026-12542/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.707%, percentile 54.806%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- redhat satellite: ≥ 6.16, \< 6.16.4 \| ≥ 6.17, \< 6.17.12 \| ≥ 6.19, \< 6.19.5 \| ≥ 6.18, \< 6.18.10 \| 6.0
- theforeman foreman: ≥ 1.5.0, ≤ 3.19.1 \| 5.0.0

## 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>

---

Data as of 2026-12-05T06:45:17.103Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
