CVE-2026-12542
JSON

5.3medium

Foreman: command injection in foreman-tail

Severity
5.3medium CVSS:3.1 by redhat
Exploit likelihood
0.71% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
foremanNot specified
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 *
CVE List
satellite:el8/foremanNot specifiedCVE List
redhat satellitefrom 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.0NVD
theforeman foremanfrom 1.5.0 up to 3.19.1, 5.0.0NVD

All scores

redhat5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-12542 changed 2026-11-26CVE Terms of Use
NVDCVE-2026-12542 changed 2026-11-26Public domain