CVE-2026-12540

High

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.

SeverityHigh
CVSS8.2
Exploit probability—
ProductForeman
PublishedOct 1, 2026
First seenOct 1, 2026

How to fix

Affected products

ProductAffected versionsFixed in
theforeman foremanNo range specified—
redhat satellite6.16 ≤ v < 6.16.4, 6.17 ≤ v < 6.17.12, 6.19 ≤ v < 6.19.5, 6.18 ≤ v < 6.18.10, 6.06.16.4, 6.17.12, 6.19.5, 6.18.10

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.