IT SBIT Services
Schneeberger
DEEN
CVE tracker

Red Hat Satellite (Foreman): OS command injection in database rake tasks

CVE-2026-12541High 8.2

← All vulnerabilities

Summary

Foreman, the basis of Red Hat Satellite, contains OS command injection flaws in the foreman-rake db:dump and db:import_dump tasks. User-supplied values in the destination and file parameters are passed unsanitized to a Ruby system() call. An attacker who may run foreman-rake, for example through a restricted sudo rule, can append shell commands and have them executed with high impact on the host and its database. Exploitation requires local access and high privileges.

Affected

  • Red Hat Satellite 6.16 for RHEL 8 and RHEL 9
  • Red Hat Satellite 6.17 for RHEL 9
  • Red Hat Satellite 6.18 for RHEL 9
  • Red Hat Satellite 6.19 for RHEL 9
  • Upstream Foreman 1.5.0 through 3.19.1 and 5.0.0
  • Satellite 6.15 and earlier: unknown

Fixed in

  • Foreman 3.19.2 and 5.0.1 (upstream)
  • Satellite 6.19: RHSA-2026:74503 (6.19.5 async update)
  • Satellite 6.18: RHSA-2026:74504 (6.18.10 async update)
  • Satellite 6.16: RHSA-2026:74506 (6.16.14 async update)
  • Satellite 6.17: unknown, check the RHSA package list

Workaround

Unknown. Red Hat has not identified a practical mitigation and recommends updating.

  • Interim measure (not vendor guidance): review and narrow sudo rules that allow foreman-rake, and limit who can run database backup and import tasks.

Exploitation

  • Not known to be exploited in the wild (CISA KEV: no).
  • CISA SSVC: exploitation none, not automatable, total technical impact.
  • No public proof of concept found.

Our recommendation

  • Identify all Foreman and Satellite instances, including Capsules, and their versions.
  • Patch to the fixed Foreman version or the matching Red Hat erratum, and verify the mapping against the RHSA package list.
  • Audit sudo rules and accounts that can run foreman-rake, and remove unneeded access.
  • Monitor KEV and vendor updates for changes in exploitation status.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 1 Nov 2026, 17:37.

Original description (NVD)

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.

NVD references (7)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.