CVE-2026-12540
Redhat Satellite: OS command injection can lead to remote code execution
- Risk score
- 63/100
- CVSS
- 8.2 v3.1
- Exploit chance (30 days)
- 1.2%
- Published
- 1 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 per…
- Affected
- Redhat Satellite
- Fix
- Apply the vendor's security update; see the linked advisory.
- Exploitation
- No known exploitation
Story map
At a glance
Redhat Satellite: Amber, patch this week. A flaw was found in Foreman. This vulnerability allows an authenticated remote attacker with low-level read permissions to achieve arbitrary code execution on the underlying server. By manipulating the permitted methods list within the template rendering engine, an attacker can bypass the safemode sandbox isolation an…
The flaws
- CVE-2026-12540: OS command injection can lead to remote code execution (CVSS 8.2 · EPSS 1%)
- CVE-2026-96658: Code injection can lead to remote code execution (CVSS 8.8 · EPSS 1%)
- CVE-2026-12541: OS command injection (CVSS 8.2 · EPSS 1%)
- CVE-2026-96659: Information disclosure (CVSS 9.1 · EPSS 0%)
The fix
Fix: Apply the vendor's security update; see the linked advisory.
Who is exposed: Redhat Satellite
Where it stands
- No known exploitation
Connects to
- Same weakness: OS command injection (CWE-78). 307 other warnings in 30 days
- Same product: Earlier Redhat Satellite warnings. 3 in the last 90 days
Why it is Amber
- CVSS 8.2 high
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
Original 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.
Last activity 1 Oct 2026. Patch Forecast updates every hour.