{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-12540","id":"CVE-2026-12540","title":"Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter","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 ;, \",","descriptionLong":"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.","published":"2026-10-01T16:22:02.990Z","updated":"2026-11-02T18:01:27.517Z","reserved":"2026-06-17T17:41:07.752Z","status":"Analyzed","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"redhat"},"metrics":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"redhat"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"redhat.com"}],"rating":"high","products":["Red Hat Satellite 6.16 for RHEL 8","Red Hat Satellite 6.16 for RHEL 9","Red Hat Satellite 6.17 for RHEL 9","Red Hat Satellite 6.18 for RHEL 9","Red Hat Satellite 6.19 for RHEL 9","Red Hat Satellite 6"],"affectedProducts":[{"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 8","defaultStatus":"affected","versions":[{"version":"0:3.12.0.23-1.el8sat","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Satellite 6.16 for RHEL 9","defaultStatus":"affected","versions":[{"version":"0:3.12.0.23-1.el9sat","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Satellite 6.17 for RHEL 9","defaultStatus":"affected","versions":[{"version":"0:3.14.0.22-1.el9sat","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","defaultStatus":"affected","versions":[{"version":"0:3.16.0.25-1.el9sat","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Satellite 6.19 for RHEL 9","defaultStatus":"affected","versions":[{"version":"0:3.18.0.14-1.el9sat","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Satellite 6","defaultStatus":"affected","versions":[],"platforms":[]}],"packages":[],"cwes":["CWE-78"],"aliases":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:74503","tags":["vendor-advisory","x_refsource_REDHAT","Vendor Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:74504","tags":["vendor-advisory","x_refsource_REDHAT","Vendor Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:74505","tags":["vendor-advisory","x_refsource_REDHAT","Vendor Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:74506","tags":["vendor-advisory","x_refsource_REDHAT","Vendor Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-12540","tags":["vdb-entry","x_refsource_REDHAT","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2489969","tags":["issue-tracking","x_refsource_REDHAT","Issue Tracking","Mitigation","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/10/07/9","tags":["Third Party Advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01236,"epssPercentile":0.69709,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-12540","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12540","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-12540","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-12540","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}