What’s Vulnerable › Vulnerabilities
CVE-2026-12540: Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
- Severity: high (CVSS 8.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-01 · updated 2026-10-08
- Weakness: CWE-78
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 products
- Red Hat Satellite 6: from 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.0 — fixed in 6.16.4, 6.17.12, 6.18.10, 6.19.5
- foreman: all versions
How to fix
Upgrade to a fixed version: Red Hat Satellite 6 6.16.4, 6.17.12, 6.18.10, 6.19.5. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2026:74503
- https://access.redhat.com/errata/RHSA-2026:74504
- https://access.redhat.com/errata/RHSA-2026:74505
- https://access.redhat.com/errata/RHSA-2026:74506
- https://access.redhat.com/security/cve/CVE-2026-12540
- https://bugzilla.redhat.com/show_bug.cgi?id=2489969
- http://www.openwall.com/lists/oss-security/2026/10/07/9
Get alerted when CVE-2026-12540 or the next vulnerability affects your stack