{"id":"CVE-2026-12542","aliases":["CVE-2026-12542"],"related":[],"kind":"vulnerability","state":"published","title":"Foreman: command injection in foreman-tail","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-01T17:14:49.985Z","modified":"2026-11-26T22:17:54.957Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.14.0.22-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.17 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.17::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.14.0.22-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.17 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.17::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.14.0.22-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.17 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.17::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.16.0.25-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.18::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.16.0.25-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.18::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.16.0.25-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.18::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.18.0.14-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.18.0.14-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.18.0.14-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Satellite 6","package":"satellite:el8/foreman","cpe":"cpe:/a:redhat:satellite:6","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.16","fixed":"6.16.4"},{"status":"affected","introduced":"6.17","fixed":"6.17.12"},{"status":"affected","introduced":"6.19","fixed":"6.19.5"},{"status":"affected","introduced":"6.18","fixed":"6.18.10"},{"status":"affected","version":"6.0"}],"vendor":"redhat","product":"satellite","cpe":"cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"1.5.0","lastAffected":"3.19.1"},{"status":"affected","version":"5.0.0"}],"vendor":"theforeman","product":"foreman","cpe":"cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:74503","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:74504","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:74505","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:74506","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-12542","tags":["vdb-entry","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2489971","tags":["issue-tracking","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/10/07/7","tags":["mailing-list","patch","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["This issue was discovered by Laura Pardo (Red Hat) and Toni Gornals (Red Hat)."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-01T17:51:54.887Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-12542","url":"https://www.cve.org/CVERecord?id=CVE-2026-12542","licence":"CVE Terms of Use","modified":"2026-11-26T21:35:09.996Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-12542","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12542","licence":"Public domain","modified":"2026-11-26T22:17:54.957Z"}],"updatedAt":"2026-11-26T22:32:36.569Z","epss":{"score":0.00707,"percentile":0.54665,"date":"2026-12-01T12:00:22.000Z"}}