---
title: "CVE-2026-12541: Foreman - Command Injection"
description: "Foreman contains a command injection caused by improper sanitization of user-supplied input in foreman-rake db:dump and db:import_dump tasks, letting attackers with foreman-rake execution permissions run arbitrary OS commands."
url: https://panop.io/threat-heartbeat/CVE-2026-12541/
---

# CVE-2026-12541 Foreman - Command Injection

Foreman contains a command injection caused by improper sanitization of user-supplied input in foreman-rake db:dump and db:import\_dump tasks, letting attackers with foreman-rake execution permissions run arbitrary OS commands.

CVSS base score 8.2 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Required

EPSS

1.20% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-12541)

## Details

Type

Command Injection

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Published

1 October 2026

Updated

15 October 2026

Weakness

[CWE-78](https://cwe.mitre.org/data/definitions/78.html)

## Vendor fix

Update to the latest version with the fix or apply patches that sanitize inputs in foreman-rake tasks.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-12541](https://nvd.nist.gov/vuln/detail/CVE-2026-12541)
- [https://bugzilla.redhat.com/show\_bug.cgi?id=2489970](https://bugzilla.redhat.com/show_bug.cgi?id=2489970)
- [https://access.redhat.com/errata/RHSA-2026:74504](https://access.redhat.com/errata/RHSA-2026:74504)
- [https://access.redhat.com/errata/RHSA-2026:74506](https://access.redhat.com/errata/RHSA-2026:74506)
- [https://access.redhat.com/errata/RHSA-2026:74505](https://access.redhat.com/errata/RHSA-2026:74505)
- [http://www.openwall.com/lists/oss-security/2026/10/07/8](http://www.openwall.com/lists/oss-security/2026/10/07/8)
- [https://access.redhat.com/errata/RHSA-2026:74503](https://access.redhat.com/errata/RHSA-2026:74503)
- [https://access.redhat.com/security/cve/CVE-2026-12541](https://access.redhat.com/security/cve/CVE-2026-12541)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
