CVE-2026-12540: Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
Vulnerability summary
CVE-2026-12540 is a high (CVSS 8.2) vulnerability in redhat satellite. EPSS estimates a 1.24% chance of exploitation in the next 30 days, higher than 70.1% of scored vulnerabilities.
Not severe (CVSS 8.2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4Timeline
- 01-10-2026PublishedVulnerability first disclosed.
- 26-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST8.2HighCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
1.24%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.24% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat1 product
- satellite≥ 6.16, < 6.16.4 | ≥ 6.17, < 6.17.12 | ≥ 6.19, < 6.19.5 | ≥ 6.18, < 6.18.10 | 6.0
Theforeman1 product
- foremanna
2 vendors · 2 products
References
7 links- bugzilla.redhat.com/show_bug.cgi?id=2489969Issue TrackingX Refsource REDHATMitigationVendor Advisory
- www.openwall.com/lists/oss-security/2026/10/07/9Third Party Advisory