Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter (Red Hat Red Hat Satellite 6.16 for RHEL 8)

CVE-2026-12540
HIGH 8.2

At a glance

Source
NVD
EPSS
EPSS 1.24 % · percentile 69 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-78 — Improper Neutralization of Special Elements used in an OS Command

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.2CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:Hredhat
CVSS 3.1HIGH 8.2CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:HNVD · secalert@redhat.com (Secondary)

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
Red Hat · Red Hat Satellite 6.16 for RHEL 8unaffected 0:3.12.0.23-1.el8sat < *
Red Hat · Red Hat Satellite 6.16 for RHEL 9unaffected 0:3.12.0.23-1.el9sat < *
Red Hat · Red Hat Satellite 6.17 for RHEL 9unaffected 0:3.14.0.22-1.el9sat < *
Red Hat · Red Hat Satellite 6.18 for RHEL 9unaffected 0:3.16.0.25-1.el9sat < *
Red Hat · Red Hat Satellite 6.19 for RHEL 9unaffected 0:3.18.0.14-1.el9sat < *
Red Hat · Red Hat Satellite 6

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD