CVE-2026-12540

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

Configuration 1 (hide)

AND
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
OR cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

Configuration 2 (hide)

AND
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

Configuration 3 (hide)

AND
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

Configuration 4 (hide)

cpe:2.3:a:theforeman:foreman:-:*:*:*:*:*:*:*

Configuration 5 (hide)

AND
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

Configuration 6 (hide)

cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*

History

08 Oct 2026, 13:16

Type Values Removed Values Added
CPE cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
cpe:2.3:a:theforeman:foreman:-:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
First Time Redhat
Redhat satellite
Theforeman foreman
Theforeman
Redhat enterprise Linux
References () https://access.redhat.com/errata/RHSA-2026:74503 - () https://access.redhat.com/errata/RHSA-2026:74503 - Vendor Advisory
References () https://access.redhat.com/errata/RHSA-2026:74504 - () https://access.redhat.com/errata/RHSA-2026:74504 - Vendor Advisory
References () https://access.redhat.com/errata/RHSA-2026:74505 - () https://access.redhat.com/errata/RHSA-2026:74505 - Vendor Advisory
References () https://access.redhat.com/errata/RHSA-2026:74506 - () https://access.redhat.com/errata/RHSA-2026:74506 - Vendor Advisory
References () https://access.redhat.com/security/cve/CVE-2026-12540 - () https://access.redhat.com/security/cve/CVE-2026-12540 - Vendor Advisory
References () https://bugzilla.redhat.com/show_bug.cgi?id=2489969 - () https://bugzilla.redhat.com/show_bug.cgi?id=2489969 - Issue Tracking, Mitigation, Vendor Advisory
References () http://www.openwall.com/lists/oss-security/2026/10/07/9 - () http://www.openwall.com/lists/oss-security/2026/10/07/9 - Third Party Advisory

07 Oct 2026, 07:17

Type Values Removed Values Added
References
  • () http://www.openwall.com/lists/oss-security/2026/10/07/9 -

02 Oct 2026, 17:17

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:74505 -

02 Oct 2026, 00:17

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:74504 -
  • () https://access.redhat.com/errata/RHSA-2026:74506 -

01 Oct 2026, 17:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-10-01 17:17

Updated : 2026-10-08 13:16


NVD link : CVE-2026-12540

Mitre link : CVE-2026-12540

CVE.ORG link : CVE-2026-12540


JSON object : View

Products Affected

redhat

  • satellite
  • enterprise_linux

theforeman

  • foreman
CWE
CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')