CVE-2026-12540
JSON

8.2high

Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter

Severity
8.2high CVSS:3.1 by redhat
Exploit likelihood
1.24% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

Description

A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. The request_id parameter is passed to an underlying system command (typically grep) without adequate shell neutralization. While the task is intended to fetch specific log entries, an attacker with sudo permissions to execute this rake task can inject shell metacharacters (such as ;, ", or |) to break out of the intended command and execute arbitrary code.

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 foremanNot specifiedNVD

Classification

CWE-78

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

References

Sources

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