CVE-2026-12540CWE-78command-injection

CVE-2026-12540

High · published October 1, 2026

CVSS v3.1
8.2
EPSS
1%
Percentile
67.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.2 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01200 · 67.9th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-10-01T21:17Z
Affected products (6)
ProductVersionsFixed in
redhat/satellite≥ 6.16, < 6.16.46.16.4
redhat/satellite≥ 6.17, < 6.17.126.17.12
redhat/satellite≥ 6.19, < 6.19.56.19.5
theforeman/foremanall versions—
redhat/satellite≥ 6.18, < 6.18.106.18.10
redhat/satelliteall versions—
References (7)
EPSS history
Timeline
  • 03 OCT 03:41Z
    EPSS moved — → 1%
    epss
  • 01 OCT 16:22Z
    Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
    cvelistv5