High severity · published Oct 1, 2026
CVE-2026-12540
Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
8.2
CVSS
1.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
High
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 69% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RH
Red Hat Satellite 6 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Satellite 6.16 for RHEL 8 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Satellite 6.16 for RHEL 9 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Satellite 6.17 for RHEL 9 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Satellite 6.18 for RHEL 9 · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat Satellite 6.19 for RHEL 9 · Red Hat
All versions, or not specified · source: vendor
FO
Foreman · Theforeman
All versions, or not specified · source: NVD
SA
Satellite · Redhat
6.16 before 6.16.4; 6.17 before 6.17.12; 6.19 before 6.19.5; 6.18 before 6.18.10; 6.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-12540
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-12540
vendor-advisory
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
vdb-entry
https://access.redhat.com/security/cve/CVE-2026-12540
issue-tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2489969
More from Red Hat Satellite 6
9.9
CVE-2025-62718
Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF
9.8
CVE-2026-39892
cryptography has a buffer overflow if non-contiguous buffers were passed to APIs
9.3
CVE-2026-44990
Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html`
9.1
CVE-2026-42264
Axios: Prototype pollution read-side gadgets in HTTP adapter allow credential injection and request hijacking
9.1
CVE-2026-2332
HTTP Request Smuggling via Chunked Extension Quoted-String Parsing
