CVE-2026-12540 json
Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
published 2026-10-01 38 d ago modified 2026-11-02 6 d ago also EUVD-2026-90916
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Red Hat Red Hat Satellite 6.16 for RHEL 8 0:3.12.0.23-1.el8sat
- Red Hat Red Hat Satellite 6.16 for RHEL 9 0:3.12.0.23-1.el9sat
- Red Hat Red Hat Satellite 6.17 for RHEL 9 0:3.14.0.22-1.el9sat
- Red Hat Red Hat Satellite 6.18 for RHEL 9 0:3.16.0.25-1.el9sat
- Red Hat Red Hat Satellite 6.19 for RHEL 9 0:3.18.0.14-1.el9sat
- foreman satellite utils 6.17, satellite capsule 6.17, satellite 6.17 3.14.0.22-1.el9sat
- satellite satellite utils 6.17, satellite capsule 6.17, satellite 6.17 6.17.12-1.el9sat
- foreman-cli satellite utils 6.17, satellite 6.17 3.14.0.22-1.el9sat
- foreman-ec2 satellite 6.17 3.14.0.22-1.el9sat
- foreman-pcp satellite capsule 6.17, satellite 6.17 3.14.0.22-1.el9sat
- python-lxml satellite capsule 6.17, satellite 6.17 5.3.1-2.el9pc
- foreman-ovirt satellite 6.17 3.14.0.22-1.el9sat
- foreman-redis satellite 6.17 3.14.0.22-1.el9sat
red hat advisories RHSA-2026:74505RHSA-2026:74504RHSA-2026:74506RHSA-2026:74503
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-12540 updated cvss 8.2
foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
-
Red Hat Satellite 6 foreman, foreman-cli, foreman-ec2, foreman-gce, foreman-ovirt, foreman-vmware, +9 moreaffected: workaround, no fix available “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.”
-
Red Hat Satellite 6.16 for RHEL 8 foreman 3.12.0.23-1.el8sat, foreman-cli 3.12.0.23-1.el8sat, foreman-ec2 3.12.0.23-1.el8sat, foreman-pcp 3.12.0.23-1.el8sat, foreman-ovirt 3.12.0.23-1.el8sat, foreman-redis 3.12.0.23-1.el8sat, +8 more Red Hat Satellite 6.16 for RHEL 9 foreman 3.12.0.23-1.el9sat, foreman-cli 3.12.0.23-1.el9sat, foreman-ec2 3.12.0.23-1.el9sat, foreman-pcp 3.12.0.23-1.el9sat, foreman-ovirt 3.12.0.23-1.el9sat, foreman-redis 3.12.0.23-1.el9sat, +8 morefixed: vendor fix “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.” RHSA-2026:74506
-
Red Hat Satellite 6.17 for RHEL 9 foreman 3.14.0.22-1.el9sat, foreman-cli 3.14.0.22-1.el9sat, foreman-ec2 3.14.0.22-1.el9sat, foreman-pcp 3.14.0.22-1.el9sat, foreman-ovirt 3.14.0.22-1.el9sat, foreman-redis 3.14.0.22-1.el9sat, +8 morefixed: vendor fix “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.” RHSA-2026:74505
-
Red Hat Satellite 6.18 for RHEL 9 foreman 3.16.0.25-1.el9satfixed: vendor fix “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.” RHSA-2026:74504
-
Red Hat Satellite 6.19 for RHEL 9 foreman 3.18.0.14-1.el9sat, foreman-cli 3.18.0.14-1.el9sat, foreman-ec2 3.18.0.14-1.el9sat, foreman-pcp 3.18.0.14-1.el9sat, foreman-redis 3.18.0.14-1.el9sat, foreman-vmware 3.18.0.14-1.el9sat, +7 morefixed: vendor fix “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.” RHSA-2026:74503
-
Red Hat Satellite 6.16 for RHEL 8 python-lxml 4.9.2-5.el8pc, satellite 6.16.14-1.el8sat, python-sqlparse 0.6.0-1.el8pc, python3.11-lxml 4.9.2-5.el8pc, python-dynaconf 3.2.13-1.el8pc, satellite-cli 6.16.14-1.el8sat, +14 more Red Hat Satellite 6.16 for RHEL 9 python-lxml 4.9.2-5.el9pc, satellite 6.16.14-1.el9sat, python-sqlparse 0.6.0-1.el9pc, python3.11-lxml 4.9.2-5.el9pc, python-dynaconf 3.2.13-1.el9pc, satellite-cli 6.16.14-1.el9sat, +14 more Red Hat Satellite 6.17 for RHEL 9 python-lxml 5.3.1-2.el9pc, satellite 6.17.12-1.el9sat, python-sqlparse 0.6.0-1.el9pc, python3.11-lxml 5.3.1-2.el9pc, python-dynaconf 3.2.13-1.el9pc, satellite-cli 6.17.12-1.el9sat, +13 more Red Hat Satellite 6.18 for RHEL 9 satellite 6.18.10-1.el9sat, foreman-cli 3.16.0.25-1.el9sat, foreman-ec2 3.16.0.25-1.el9sat, foreman-pcp 3.16.0.25-1.el9sat, satellite-cli 6.18.10-1.el9sat, rubygem-safemode 1.5.0-2.el9sat, +21 more Red Hat Satellite 6.19 for RHEL 9 satellite 6.19.5-1.el9sat, satellite-cli 6.19.5-1.el9sat, rubygem-safemode 1.5.0-2.el9sat, satellite-common 6.19.5-1.el9sat, python3.12-sqlparse 0.6.0-1.el9pc, satellite-capsule 6.19.5-1.el9sat, +11 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 34 d ago
Exploit prediction
1.24% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
Affected products
- Red Hat Red Hat Satellite 6.16 for RHEL 8
- Red Hat Red Hat Satellite 6.16 for RHEL 9
- Red Hat Red Hat Satellite 6.17 for RHEL 9
- Red Hat Red Hat Satellite 6.18 for RHEL 9
- Red Hat Red Hat Satellite 6.19 for RHEL 9
- Red Hat Red Hat Satellite 6
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
access.redhat.com
/errata/RHSA-2026:74503
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:74504
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:74505
vendor-advisory
-
access.redhat.com
/errata/RHSA-2026:74506
vendor-advisory
-
access.redhat.com
/security/cve/CVE-2026-12540
vdb-entry, vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2489969
issue-tracking, mitigation, vendor-advisory
-
openwall.com
/lists/oss-security/2026/10/07/9
third-party-advisory
Sources
- CVE List CVE-2026-12540
- NVD CVE-2026-12540
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.