CVE-2026-12540Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
- 8.2HighCVSS base score
- 1.2%Exploitation in 30 daysEPSS · top 30% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 4 months later
· 4 months later
Published
- 32 days later
· 32 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High8.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High8.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 1.2% · top 30% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.2.
Affected products
Red Hat · Red Hat Satellite 6.16 for RHEL 8
- unaffected 0:3.12.0.23-1.el8sat – < *
Red Hat · Red Hat Satellite 6.16 for RHEL 9
- unaffected 0:3.12.0.23-1.el9sat – < *
Red Hat · Red Hat Satellite 6.17 for RHEL 9
- unaffected 0:3.14.0.22-1.el9sat – < *
Red Hat · Red Hat Satellite 6.18 for RHEL 9
- unaffected 0:3.16.0.25-1.el9sat – < *
Red Hat · Red Hat Satellite 6.19 for RHEL 9
- unaffected 0:3.18.0.14-1.el9sat – < *
All versions: affected
What to do
Workaround: Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.
References
References7
- RHSA-2026:74503 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:74504 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:74505 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:74506 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-12540 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2489969 (opens in a new tab)issue-trackingx_refsource_REDHAT
- http://www.openwall.com/lists/oss-security/2026/10/07/9 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-90916 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-12540)Record last updated .