CVE-2026-12540
Last modified
CVE-2026-12540 is a high-severity vulnerability rated 8.2/10 on the CVSS scale. A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. EPSS estimates a 1.31% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Redhat | Satellite | >= 6.16, < 6.16.4 |
| Redhat | Satellite | >= 6.17, < 6.17.12 |
| Redhat | Satellite | >= 6.19, < 6.19.5 |
| Theforeman | Foreman | All versions |
| Redhat | Satellite | >= 6.18, < 6.18.10 |
| Redhat | Satellite | 6.0 |
References
- https://access.redhat.com/errata/RHSA-2026:74503Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74504Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74505Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74506Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-12540Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2489969Issue Tracking, Mitigation, Vendor Advisory
- https://www.openwall.com/lists/oss-security/2026/10/07/9Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-12540?
How severe is CVE-2026-12540?
How do I fix CVE-2026-12540?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-12535Improperly Controlled Modification of Dynamically-Determined…9.8
- CVE-2026-12536The Avada (Fusion) Builder plugin for WordPress is vulnerabl…6.4
- CVE-2026-12537Improper Neutralization used in an OS Command in the contain…7.8
- CVE-2026-12538IBM MQ 9.4.0.0 to 9.4.0.26, 9.4.1.0 to 9.4.5.3, and 10.0.0.1…5.4
- CVE-2026-12539Docker Sandboxes (sbx) blocks ICMP egress with an authorizer…5.7
- CVE-2026-1254The Modula Image Gallery – Photo Grid & Video Gallery plugin…4.3
- CVE-2026-12541A flaw was found in Foreman. OS command injection vulnerabil…8.2
- CVE-2026-12542A flaw was found in Foreman. The foreman-tail utility is vul…7.8
- CVE-2026-12544A flaw was found in Foreman. The foreman-rake initialization…7.7
- CVE-2026-12545A flaw was found in rubygem-hammer_cli. A command injection …6.7
- CVE-2026-12547SoupAuthManager caches proxy authentication credentials with…3.4
- CVE-2026-12548A heap out-of-bounds read flaw was found in libsoup. When pa…4.2
Are you affected by CVE-2026-12540?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
