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.
CVE-2026-12540
Score 8.2 from GitHub Security Advisory (severity: HIGH) published 2026-10-01. A secondary CVSS source baseline 8.2; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.2
- EG Score
- 8.2HIGHhigh confidence
- EG Risk
- 42EG Risk 42/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity82% × 45%Exploitation1% × 40%Automatability30% × 15%CISA SSVC: Track at low or medium mission impact; Track or Attend at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 1.3%
- EPSS %ILE
- 69th
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track or Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation none (no KEV listing, exploit record or EPSS ≥ 50%) · Automatable unknown (not published for this CVE) · Technical impact partial (CVSS below 9.0). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
October 1, 2026
Last Modified
October 2, 2026
Advisory Details (3)
Auto-updated Oct 1, 20262489969 – (CVE-2026-12540) CVE-2026-12540 foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
https://bugzilla.redhat.com/show_bug.cgi?id=2489969CVE-2026-12540 - Red Hat Customer Portal
Affected: Red Hat Enterprise Linux 8 or OpenShift Container Platform 4, is affected by this vulnerability and a fix may be released to a
https://access.redhat.com/security/cve/CVE-2026-12540Vendor Advisories for CVE-2026-12540(5)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:74506Red Hat Product SecurityCritical
Red Hat Security Advisory: Satellite 6.16.14 Async Update
- RHSA-2026:74505Red Hat Product SecurityCritical
Red Hat Security Advisory: Satellite 6.17.12 Async Update
- RHSA-2026:74504Red Hat Product SecurityCritical
Red Hat Security Advisory: Satellite 6.18.10 Async Update
- GHSA-c5q9-9fc7-jgxpGitHub Security AdvisoriesHigh
A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors...
- RHSA-2026:74503Red Hat Product SecurityCritical
Red Hat Security Advisory: Satellite 6.19.5 Async Update
Patch Availability(4)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | foreman-0:3.12.0.23-1.el9sat | 2026-10-01 | redhat |
| redhat | foreman-0:3.16.0.25-1.el9sat | 2026-10-01 | redhat |
| redhat | foreman-0:3.18.0.14-1.el9sat | 2026-10-01 | redhat |
| redhat | foreman-0:3.14.0.22-1.el9sat | 2026-10-01 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 26× in last 7d / 26× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-10-04 04:42 UTCVendor advisory
- 2026-10-04 04:42 UTCGHSA enrichment
- 2026-10-03 16:58 UTCEG score recompute
- 2026-10-03 16:58 UTCVendor advisory
- 2026-10-03 16:58 UTCGHSA enrichment
- 2026-10-03 14:25 UTCEPSS rescore
- 2026-10-03 05:14 UTCVendor advisory
- 2026-10-03 05:14 UTCGHSA enrichment
- 2026-10-02 17:29 UTCEG score recompute
- 2026-10-02 17:29 UTCVendor advisory
- 2026-10-02 17:29 UTCGHSA enrichment
- 2026-10-02 17:00 UTCEG score recompute
- 2026-10-02 17:00 UTCVendor advisory
- 2026-10-02 17:00 UTCGHSA enrichment
- 2026-10-02 12:12 UTCVendor advisory
- 2026-10-02 12:11 UTCGHSA enrichment
- 2026-10-02 00:25 UTCEG score recompute
- 2026-10-02 00:25 UTCVendor advisory
- 2026-10-02 00:25 UTCGHSA enrichment
- 2026-10-01 23:37 UTCEG score recompute
- 2026-10-01 23:37 UTCGHSA enrichment
- 2026-10-01 20:41 UTCEG score recompute
- 2026-10-01 20:41 UTCGHSA enrichment
- 2026-10-01 17:27 UTCEG score recompute
- 2026-10-01 16:26 UTCEG score recompute
Show 1 moreShow fewer
- 2026-10-01 16:25 UTCMITRE cvelistV5first tracked
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat:RHSA-2026:74503
Frequently asked(5)
What is CVE-2026-12540?
When was CVE-2026-12540 disclosed?
Is CVE-2026-12540 actively exploited?
What is the CVSS score of CVE-2026-12540?
How do I remediate CVE-2026-12540?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-12540
Is Your Infrastructure Affected by CVE-2026-12540?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.