Skip to content
OpenAdvisories
High · 8.2 CVE-2026-12540 EUVD-2026-90916GHSA-c5q9-9fc7-jgxp

Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter

Published Oct 1, 2026 · Updated Nov 2, 2026 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
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 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Satellite Utils 6 foreman +1 3.12.0.23-1.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite Utils 6 rubygem-hammer_cli 3.12.0-2.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite Utils 6 satellite +1 6.16.14-1.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite Capsule 6 foreman +2 3.12.0.23-1.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite Capsule 6 pulpcore-obsolete-packages 1.3.1-6.el9pc RHSA-2026:74504
Red Hat Satellite Capsule 6 python-dynaconf +1 3.2.13-1.el8pc RHSA-2026:74506, RHSA-2026:74505
Red Hat Satellite Capsule 6 python-gitpython +1 3.1.62-1.el8pc RHSA-2026:74506, RHSA-2026:74505
Red Hat Satellite Capsule 6 python-lxml +1 4.9.2-5.el8pc RHSA-2026:74506, RHSA-2026:74505
Red Hat Satellite Capsule 6 python-pulpcore +1 3.49.39-4.el8pc RHSA-2026:74506
Red Hat Satellite Capsule 6 python-sqlparse +1 0.6.0-1.el8pc RHSA-2026:74506, RHSA-2026:74505
Red Hat Satellite Capsule 6 python3.12-dynaconf 3.2.13-2.el9pc RHSA-2026:74504, RHSA-2026:74503
Red Hat Satellite Capsule 6 python3.12-gitpython 3.1.62-1.el9pc RHSA-2026:74504, RHSA-2026:74503
Red Hat Satellite Capsule 6 python3.12-sqlparse 0.6.0-1.el9pc RHSA-2026:74504, RHSA-2026:74503
Red Hat Satellite Capsule 6 satellite +2 6.16.14-1.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite Capsule 6 satellite-obsolete-packages 6.17.12-1.el9sat RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite 6 foreman +14 3.12.0.23-1.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite 6 pulpcore-obsolete-packages 1.3.1-6.el9pc RHSA-2026:74504
Red Hat Satellite 6 python-dynaconf +1 3.2.13-1.el8pc RHSA-2026:74506, RHSA-2026:74505
Red Hat Satellite 6 python-gitpython +1 3.1.62-1.el8pc RHSA-2026:74506, RHSA-2026:74505
Red Hat Satellite 6 python-lxml +1 4.9.2-5.el8pc RHSA-2026:74506, RHSA-2026:74505
Red Hat Satellite 6 python-pulpcore +1 3.49.39-4.el8pc RHSA-2026:74506
Red Hat Satellite 6 python-sqlparse +1 0.6.0-1.el8pc RHSA-2026:74506, RHSA-2026:74505
Red Hat Satellite 6 python3.12-dynaconf 3.2.13-2.el9pc RHSA-2026:74504, RHSA-2026:74503
Red Hat Satellite 6 python3.12-gitpython 3.1.62-1.el9pc RHSA-2026:74504, RHSA-2026:74503
Red Hat Satellite 6 python3.12-sqlparse 0.6.0-1.el9pc RHSA-2026:74504, RHSA-2026:74503
Red Hat Satellite 6 rubygem-foreman_remote_execution +1 13.2.8-2.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite 6 rubygem-hammer_cli 3.12.0-2.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite 6 rubygem-katello 4.14.0.23-1.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite 6 rubygem-safemode 1.5.0-2.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite 6 satellite +2 6.16.14-1.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite 6 satellite-obsolete-packages 6.17.12-1.el9sat RHSA-2026:74505, RHSA-2026:74504
Red Hat Satellite 6 yggdrasil-worker-forwarder 0.1.0-2.el8sat RHSA-2026:74506, RHSA-2026:74505, RHSA-2026:74504

Advisories 5

References