CVE-2026-12540

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

State
Published
Severity
8.2 High
Published
Oct 1, 2026
Updated
Oct 7, 2026
Reserved
Jun 17, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.2 HighCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:Hredhat

Weaknesses

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Affected Products

ProductVersions
Red Hat Satellite 6.16 for RHEL 8Red Hat
  • 0:3.12.0.23-1.el8sat and laterNot affected
Red Hat Satellite 6.16 for RHEL 9Red Hat
  • 0:3.12.0.23-1.el9sat and laterNot affected
Red Hat Satellite 6.17 for RHEL 9Red Hat
  • 0:3.14.0.22-1.el9sat and laterNot affected
Red Hat Satellite 6.18 for RHEL 9Red Hat
  • 0:3.16.0.25-1.el9sat and laterNot affected
Red Hat Satellite 6.19 for RHEL 9Red Hat
  • 0:3.18.0.14-1.el9sat and laterNot affected
Red Hat Satellite 6Red Hat

    References

    Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.