# CVE-2026-12541: Foreman: command injection in foreman-rake database tasks

- 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-12541 · JSON: https://cvemate.com/vulnerability/CVE-2026-12541/json

## Description

```text
A flaw was found in Foreman. OS command injection vulnerabilities exist in the foreman-rake db:dump and db:import_dump tasks. The application fails to properly sanitize user-supplied input in the destination parameter (during backups) and the file parameter (during imports) before passing them to a Ruby system() call for execution. An attacker with permissions to execute foreman-rake (e.g., via a restricted sudo configuration) can append malicious shell commands to the provided file paths.
```

## 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.0 \| ≥ 6.16, \< 6.16.4 \| ≥ 6.17, \< 6.17.12 \| ≥ 6.19, \< 6.19.5 \| ≥ 6.18, \< 6.18.10
- 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-12541>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2489970>
- <http://www.openwall.com/lists/oss-security/2026/10/07/8>

---

Data as of 2026-12-05T03:20:46.878Z. 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
