CVE-2026-12540
CVE-2026-12540 · Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
CVSS 8.2 · High · EPSS 1.7%
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- red hat satellite 6.16 for rhel 8No fix published
- red hat satellite 6.16 for rhel 9No fix published
- red hat satellite 6.17 for rhel 9No fix published
- red hat satellite 6.18 for rhel 9No fix published
- and 2 more
Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- RHSA-2026:74505 · Red Hat satellite 6.17 el9, Red Hat satellite capsule 6.17 el9, Red Hat satellite utils 6.17 el9 ·
- RHSA-2026:74506 · Red Hat satellite 6.16 el8, Red Hat satellite 6.16 el9, Red Hat satellite capsule 6.16 el8, Red Hat satellite capsule 6.16 el9, Red Hat satellite utils 6.16 el8, Red Hat satellite utils 6.16 el9 ·
- RHSA-2026:74503 · Red Hat satellite 6.19 el9, Red Hat satellite capsule 6.19 el9, Red Hat satellite utils 6.19 el9 ·
- RHSA-2026:74504 · Red Hat satellite 6.18 el9, Red Hat satellite capsule 6.18 el9, Red Hat satellite utils 6.18 el9 ·
Affected products and versions
red hat satellite 6.16 for rhel 8
- Versions
- ≥ 0:3.12.0.23-1.el8sat: Not affected (rpm)
No fix published
red hat satellite 6.16 for rhel 9
- Versions
- ≥ 0:3.12.0.23-1.el9sat: Not affected (rpm)
No fix published
red hat satellite 6.17 for rhel 9
- Versions
- ≥ 0:3.14.0.22-1.el9sat: Not affected (rpm)
No fix published
red hat satellite 6.18 for rhel 9
- Versions
- ≥ 0:3.16.0.25-1.el9sat: Not affected (rpm)
No fix published
red hat satellite 6.19 for rhel 9
- Versions
- ≥ 0:3.18.0.14-1.el9sat: Not affected (rpm)
No fix published
red hat satellite 6
No fix published
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-12540