CVE-2026-12540
Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
- High 8.2
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.
Key facts
- Published
- 1 Oct 2026
- Last changed
- 2 Nov 2026
- Assigned by
- redhat
- EPSS
- 1.236% likely to be exploited in the next 30 days, higher than 69.586% of CVEs (scores for 17 Nov 2026)
- SSVC (CISA)
- Exploitation: none; Automatable: no; Technical impact: total
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 8.2CVSS 3.1, Highfrom the CNA (redhat)
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
What to do
- Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.CNA workaround statement
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Satellite 6.16 for RHEL 8 |
|
| Red Hat | Red Hat Satellite 6.16 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6.17 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6.18 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6.19 for RHEL 9 |
|
| Red Hat | Red Hat Satellite 6 |
|
Timeline
- 17 Jun 2026 Reported to Red Hat.
- 1 Oct 2026 Made public.
- 1 Oct 2026 Published
Weakness
Practice this bug class
HackZoneLabs has a hands-on lab on OS command injection (CWE-78).