CVE-2026-12540

published 1 Oct 2026 · updated 2 Nov 2026

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

8.2HighCVSS 8.2EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatSatellite

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-12540 severity on Zeptric[![CVE-2026-12540](https://zeptric.io/badge/cve/CVE-2026-12540.svg)](https://zeptric.io/cve/CVE-2026-12540)