# CVE-2026-12540: Foreman: command injection in foreman-rake errors:fetch\_log via request\_id parameter

- Priority: **Routine**
- Reason: Not severe (CVSS 8.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-01 · Modified: 2026-11-26
- Record: https://cvemate.com/vulnerability/CVE-2026-12540 · JSON: https://cvemate.com/vulnerability/CVE-2026-12540/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.241%, percentile 70.158%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- redhat satellite: ≥ 6.16, \< 6.16.4 \| ≥ 6.17, \< 6.17.12 \| ≥ 6.19, \< 6.19.5 \| ≥ 6.18, \< 6.18.10 \| 6.0
- theforeman foreman: na

## 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>

---

Data as of 2026-12-05T03:20:48.789Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
