{"id":"CVE-2026-12541","aliases":["CVE-2026-12541"],"related":[],"kind":"vulnerability","state":"published","title":"Foreman: command injection in foreman-rake database tasks","summary":"A flaw was found in Foreman. OS command injection vulnerabilities exist in the foreman-rake db:dump and db:import_dump tasks. The application fails to properly sanitize user-supplied input in the destination parameter (during backups) and the file parameter (during imports) before passing them to a Ruby system() call for execution. An attacker with permissions to execute foreman-rake (e.g., via a restricted sudo configuration) can append malicious shell commands to the provided file paths.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in Foreman. OS command injection vulnerabilities exist in the foreman-rake db:dump and db:import_dump tasks. The application fails to properly sanitize user-supplied input in the destination parameter (during backups) and the file parameter (during imports) before passing them to a Ruby system() call for execution. An attacker with permissions to execute foreman-rake (e.g., via a restricted sudo configuration) can append malicious shell commands to the provided file paths.","source":"cvelist"}],"published":"2026-10-01T16:22:09.928Z","modified":"2026-11-26T14:17:22.567Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":8.2,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el8sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 8","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.12.0.23-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.14.0.22-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.17 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.17::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.14.0.22-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.17 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.17::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.14.0.22-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.17 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.17::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.16.0.25-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.18::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.16.0.25-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.18::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.16.0.25-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.18::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.18.0.14-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.18.0.14-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:3.18.0.14-1.el9sat","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19 for RHEL 9","package":"foreman","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Satellite 6","package":"satellite:el8/foreman","cpe":"cpe:/a:redhat:satellite:6","source":"cvelist"},{"ranges":[{"status":"affected","version":"6.0"},{"status":"affected","introduced":"6.16","fixed":"6.16.4"},{"status":"affected","introduced":"6.17","fixed":"6.17.12"},{"status":"affected","introduced":"6.19","fixed":"6.19.5"},{"status":"affected","introduced":"6.18","fixed":"6.18.10"}],"vendor":"redhat","product":"satellite","cpe":"cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"theforeman","product":"foreman","cpe":"cpe:2.3:a:theforeman:foreman:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:74503","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:74504","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:74505","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:74506","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-12541","tags":["vdb-entry","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2489970","tags":["issue-tracking","mitigation","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/10/07/8","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["This issue was discovered by Laura Pardo (Red Hat) and Toni Gornals (Red Hat)."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-01T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-12541","url":"https://www.cve.org/CVERecord?id=CVE-2026-12541","licence":"CVE Terms of Use","modified":"2026-11-26T14:01:59.374Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-12541","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12541","licence":"Public domain","modified":"2026-11-26T14:17:22.567Z"}],"updatedAt":"2026-11-26T14:32:12.789Z","epss":{"score":0.01241,"percentile":0.70001,"date":"2026-12-01T12:00:22.000Z"}}