{"id":"CVE-2026-12540","title":"A flaw was found in Foreman","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. W…","severity":"high","cvss":8.2,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","cwe":["CWE-78"],"vendor":"Red Hat","product":"foreman","affected":["foreman (all versions)","foreman (all versions)","foreman (all versions)","foreman (all versions)","foreman (all versions)","satellite:el8/foreman (all versions)"],"patched":["satellite_6_16_for_rhel 8","satellite_6_16_for_rhel 9","satellite_6_18_for_rhel 9","satellite_6_19_for_rhel 9"],"published":"2026-10-01","updated":"2026-10-02","sourceUpdated":"2026-10-02T17:17:05.523","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-12540","references":[{"url":"https://access.redhat.com/errata/RHSA-2026:74503","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2026:74504","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2026:74505","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2026:74506","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/security/cve/CVE-2026-12540","label":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2489969","label":"secalert@redhat.com"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12540.json"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-12540"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12540"}],"tags":["nvd","cve.org","csaf","vex","red-hat"],"epss":0.01303,"epssPercentile":0.69487,"ingestedAt":"2026-10-01T18:55:42.359Z","slug":"CVE-2026-12540","body":"## Overview\n\nA 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **RHSA-2026:74506** · Red Hat · fixed in: Red Hat Satellite 6.16 for RHEL 8, Red Hat Satellite 6.16 for RHEL 9 · released 2026-10-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:74506)\n- **RHSA-2026:74504** · Red Hat · fixed in: Red Hat Satellite 6.18 for RHEL 9 · released 2026-10-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:74504)\n- **RHSA-2026:74503** · Red Hat · fixed in: Red Hat Satellite 6.19 for RHEL 9 · released 2026-10-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:74503)\n- **Red Hat VEX** · Important · affected: Red Hat Satellite 6 · no fix planned: Red Hat Satellite 6 · updated 2026-10-02 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12540.json)","depth":"twilight","depthScore":45,"depthScoreParts":{"impact":45.1,"likelihood":0.3,"exploitation":0,"ransomware":0},"changes":[]}