{"id":"CVE-2026-12540","published":"2026-10-01T17:17:20.053","lastModified":"2026-10-07T07:17:00.040","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.","cvssScore":8.2,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","cwes":["CWE-78"],"vendors":[],"products":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:74503","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2026:74504","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2026:74505","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2026:74506","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-12540","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2489969","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2026/10/07/9","tags":[]}],"exploitRefs":[],"hasPoc":false,"ai":{"summary":"The flaw allows an attacker with sudo permissions to inject shell commands, leading to the execution of arbitrary code.","exploitability":"Exploitation requires sudo permissions and knowledge of the specific request_id parameter. The vulnerability is moderately hard to exploit.","blast_radius":"If exploited, the attacker could gain full control over the system, potentially leading to data loss or system compromise.","remediation":"Disable the foreman-rake errors:fetch_log task or restrict access to it to users without sudo permissions.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","sudo","command-injection"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-10-05T08:43:21.754Z"}}