High severity8.2NVD Advisory· Published Oct 1, 2026· Updated Oct 8, 2026
CVE-2026-12540
CVE-2026-12540
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
4- cpe:2.3:a:theforeman:foreman:-:*:*:*:*:*:*:*
Patches
Vulnerability mechanics
References
7- www.openwall.com/lists/oss-security/2026/10/07/9nvdThird Party Advisory
- access.redhat.com/errata/RHSA-2026:74503nvdVendor Advisory
- access.redhat.com/errata/RHSA-2026:74504nvdVendor Advisory
- access.redhat.com/errata/RHSA-2026:74505nvdVendor Advisory
- access.redhat.com/errata/RHSA-2026:74506nvdVendor Advisory
- access.redhat.com/security/cve/CVE-2026-12540nvdVendor Advisory
- bugzilla.redhat.com/show_bug.cginvdIssue TrackingMitigationVendor Advisory
News mentions
0No linked articles in our index yet.