A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. (CVE-2026-12540)
A command injection vulnerability (CVE-2026-12540) exists in Foreman within the foreman-rake errors:fetch_log task. The request_id parameter is passed unsafely to a system command, allowing an attacker with sudo permissions to inject shell metacharacters and execute arbitrary code. This flaw affects Red Hat Satellite 6.19 on RHEL 9 and has a high CVSS score of 8.2. Red Hat has issued an official security advisory with a patch to address this vulnerability.
AI Analysis
Technical Summary
CVE-2026-12540 is a command injection vulnerability in Foreman's foreman-rake errors:fetch_log task. The request_id parameter is used in an underlying system command (commonly grep) without proper shell neutralization, enabling an attacker with sudo privileges to inject shell metacharacters such as ;, ", or | to break out of the intended command context and execute arbitrary code. This vulnerability is part of a set of command injection and other security issues fixed in Red Hat Satellite 6.19.5 for RHEL 9. The vulnerability has a CVSS v3.1 base score of 8.2, indicating high severity with impacts on confidentiality, integrity, and availability.
Potential Impact
An attacker with sudo permissions to execute the foreman-rake errors:fetch_log task can exploit this vulnerability to execute arbitrary code on the system. This can lead to full system compromise, including unauthorized access, data modification, and service disruption. The vulnerability affects Red Hat Satellite 6.19 on RHEL 9, which is used for system provisioning and configuration management.
Mitigation Recommendations
Red Hat has released an official security update (RHSA-2026:74503) that patches this vulnerability in Red Hat Satellite 6.19 for RHEL 9. Users should apply this update promptly to remediate the issue. Prior to applying the update, ensure all previously released errata relevant to the system have been applied. No additional mitigation steps are required beyond applying the official patch.
A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. (CVE-2026-12540)
Description
A command injection vulnerability (CVE-2026-12540) exists in Foreman within the foreman-rake errors:fetch_log task. The request_id parameter is passed unsafely to a system command, allowing an attacker with sudo permissions to inject shell metacharacters and execute arbitrary code. This flaw affects Red Hat Satellite 6.19 on RHEL 9 and has a high CVSS score of 8.2. Red Hat has issued an official security advisory with a patch to address this vulnerability.
CVSS v3.1
Score 8.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-12540 is a command injection vulnerability in Foreman's foreman-rake errors:fetch_log task. The request_id parameter is used in an underlying system command (commonly grep) without proper shell neutralization, enabling an attacker with sudo privileges to inject shell metacharacters such as ;, ", or | to break out of the intended command context and execute arbitrary code. This vulnerability is part of a set of command injection and other security issues fixed in Red Hat Satellite 6.19.5 for RHEL 9. The vulnerability has a CVSS v3.1 base score of 8.2, indicating high severity with impacts on confidentiality, integrity, and availability.
Potential Impact
An attacker with sudo permissions to execute the foreman-rake errors:fetch_log task can exploit this vulnerability to execute arbitrary code on the system. This can lead to full system compromise, including unauthorized access, data modification, and service disruption. The vulnerability affects Red Hat Satellite 6.19 on RHEL 9, which is used for system provisioning and configuration management.
Mitigation Recommendations
Red Hat has released an official security update (RHSA-2026:74503) that patches this vulnerability in Red Hat Satellite 6.19 for RHEL 9. Users should apply this update promptly to remediate the issue. Prior to applying the update, ensure all previously released errata relevant to the system have been applied. No additional mitigation steps are required beyond applying the official patch.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c5q9-9fc7-jgxp
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-12540"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Patch Information
Threat ID: 6abeb3e4a43b0b3b89ed14e0
Added to database: 10/01/2026, 19:26:28 UTC
Last enriched: 10/01/2026, 19:29:36 UTC
Last updated: 10/02/2026, 02:45:56 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.