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

- Severity: Medium 5.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-01)
- Published: 2026-10-01T17:14:49.985Z
- Modified: 2026-11-26T22:17:54.957Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- foreman: no versions given (not affected: from 0:3.12.0.23-1.el8sat before *; from 0:3.12.0.23-1.el9sat before *; from 0:3.14.0.22-1.el9sat before *; from 0:3.16.0.25-1.el9sat before *; from 0:3.18.0.14-1.el9sat before *)
- satellite:el8/foreman: no versions given
- redhat satellite: 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
- theforeman foreman: from 1.5.0 up to 3.19.1; 5.0.0

## Every score

- redhat: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (vdb-entry, 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)

## Sources

- CVE List: [CVE-2026-12542](https://www.cve.org/CVERecord?id=CVE-2026-12542), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2026-12542](https://nvd.nist.gov/vuln/detail/CVE-2026-12542), Public domain, modified 2026-11-26

---

Page: https://cve.day/CVE-2026-12542 · Whole record: https://cve.day/CVE-2026-12542.json · Rebuilt by cve.day 2026-11-26T22:32:36.569Z
