Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-12540
VULNERABILITY

CVE-2026-12540

Common Vulnerabilities and Exposures record

HIGH

Summary

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.

Risk

CVSS
8.2
Severity
HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Timeline

Published
Oct 1, 2026 17:17
Modified
Nov 26, 2026 14:17
Last observed
Nov 26, 2026 10:00

CWE

CWE-78

Affected product identifiers

cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:a:theforeman:foreman:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*

References