CVE-2026-12540
Foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
No exploitation reported by the sources we read.
- Published2026-10-01
- Fixed in6.19.5 · 6.18.10 · 6.17.12 · 6.16.4
- WeaknessCWE-78
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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
dates in UTC- 2026-10-0116:22CVE publishedCNA
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.19 | ≥ 6.19, < 6.19.5 | 6.19.5 | NVD |
| 6.18 | ≥ 6.18, < 6.18.10 | 6.18.10 | NVD |
| 6.17 | ≥ 6.17, < 6.17.12 | 6.17.12 | NVD |
| 6.16 | ≥ 6.16, < 6.16.4 | 6.16.4 | NVD |
| 6.0 | = 6.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA6 products
As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Red Hat Satellite 6.16 for RHEL 8other versions: affected
package foremanhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:3.12.0.23-1.el8sat
- Red Hat Satellite 6.16 for RHEL 9other versions: affected
package foremanhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:3.12.0.23-1.el9sat
- Red Hat Satellite 6.17 for RHEL 9other versions: affected
package foremanhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:3.14.0.22-1.el9sat
- Red Hat Satellite 6.18 for RHEL 9other versions: affected
package foremanhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:3.16.0.25-1.el9sat
- Red Hat Satellite 6.19 for RHEL 9other versions: affected
package foremanhttps://access.redhat.com/downloads/content/package-browser/
Not affected ≥ 0:3.18.0.14-1.el9sat
- Red Hat Satellite 6other versions: affected
package satellite:el8/foremanhttps://access.redhat.com/downloads/content/package-browser/
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-10-02
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Vendor advisories
foreman: command injection in foreman-rake errors:fetch_log via request_id parameter
foreman-cli (satellite:el8) as a component of Red Hat Satellite 6 · foreman-compute (satellite:el8) as a component of Red Hat Satellite 6 · foreman-debug (satellite:el8) as a component of Red Hat Satellite 6 · +14 more
Red Hat Security Advisory: Satellite 6.16.14 Async Update
Red Hat Security Advisory: Satellite 6.17.12 Async Update
Red Hat Security Advisory: Satellite 6.18.10 Async Update
Red Hat Security Advisory: Satellite 6.19.5 Async Update
Fix
- Update Redhat satellite to 6.19.5 · 6.18.10 · 6.17.12 · 6.16.4
- Vendor fix Red Hat Product Security RHSA-2026:74506 · 42 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_satellite/6.16/html/updating_red_hat_satellite/index Release Notes: Pro…
- Vendor fix Red Hat Product Security RHSA-2026:74505 · 21 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2026:74504 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2026:74503 · 20 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://docs.redhat.com/en/documentation/red_hat_satellite/6.19/html/updating_red_hat_satellite/index
- Workaround from the vendor Red Hat Product Security RHSA-2026:74506 · 134 productsRed 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.
- No fix available, says the vendor Red Hat Product Security CVE-2026-12540 · 17 productsAffected
Advisories and patches
- access.redhat.comVendor Advisory
- access.redhat.comVendor Advisory
- access.redhat.comVendor Advisory
- access.redhat.comVendor Advisory
- access.redhat.comVendor Advisory
- bugzilla.redhat.comMitigation · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-16
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2026-10-06
- CNACVSS 3.18.22026-11-02
- CNAweakness (CWE)CWE-782026-11-02
- FIRST EPSSEPSS score1.2 %2026-11-15
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2026-90916same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-c5q9-9fc7-jgxpsame flawGitHub Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- Published
- 2026-10-01
- Last Modified
- 2026-10-08
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-c5q9-9fc7-jgxp
Frequently asked questions
What is CVE-2026-12540?
Is CVE-2026-12540 actively exploited?
What is the CVSS score for CVE-2026-12540?
Running foreman? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2026-12405same advisoryRubygem-foreman_remote_execution: command injection in job invocations via effective_user parameter
- CVE-2026-12541same advisoryForeman: command injection in foreman-rake database tasks
- CVE-2026-73623same advisory
- CVE-2026-42215same advisory
- CVE-2026-96658same advisoryForeman: safemode bypass leading to rce
- CVE-2026-73625same advisory
- CVE-2026-45623same advisory
- CVE-2026-33154same advisory
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-c5q9-9fc7-jgxp
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0