CVE-2026-12540: Foreman. A command injection vulnerability exists · OS Command Injection
Source GCVE Database
Not known to be exploited · CVSS 8.2 High : patch Red Hat Satellite 6.16 for RHEL 8 soon.
Data as of 15 Nov 2026, 20:25 UTC
Thin evidence
One scorer or none| CNA (redhat) | CVSS 3.1 | 8.2 |
|---|
- EPSS
- 1.2% chance of exploitation in 30 days – higher than 69% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Red Hat Satellite 6.16 for RHEL 8foreman | Affected– | Fixed in– |
| Red Hat Satellite 6.16 for RHEL 9foreman | Affected– | Fixed in– |
| Red Hat Satellite 6.17 for RHEL 9foreman | Affected– | Fixed in– |
| Red Hat Satellite 6.18 for RHEL 9foreman | Affected– | Fixed in– |
| Red Hat Satellite 6.19 for RHEL 9foreman | Affected– | Fixed in– |
| Red Hat Satellite 6satellite:el8/foreman | Affected– | Fixed in– |
AI-suggested
A security update is available from Red Hat (RHSA-2026:74503) that fixes this vulnerability in Red Hat Satellite 6.19.5. Users should apply this official patch to remediate the issue. Since the vulnerability requires sudo permissions to exploit, restricting such privileges and auditing sudo access can reduce risk until the patch is applied.
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.
References
- nvd.nist.gov/vuln/detail/CVE-2026-12540 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:74503 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-12540 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2489969 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:74504 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:74505 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:74506 (opens in a new tab)
- openwall.com/lists/oss-security/2026/10/07/9 (opens in a new tab)