Bug 2488952 (CVE-2026-12405) - CVE-2026-12405 rubygem-foreman_remote_execution: command injection in job invocations via effective_user parameter
Summary: CVE-2026-12405 rubygem-foreman_remote_execution: command injection in job inv...
Keywords:
Status: NEW
Alias: CVE-2026-12405
Deadline: 2026-10-01
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-15 17:42 UTC by OSIDB Bzimport
Modified: 2026-10-01 22:31 UTC (History)
14 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:74504 0 None None None 2026-10-01 22:11:46 UTC
Red Hat Product Errata RHSA-2026:74505 0 None None None 2026-10-01 22:14:12 UTC
Red Hat Product Errata RHSA-2026:74506 0 None None None 2026-10-01 22:31:51 UTC

Description OSIDB Bzimport 2026-06-15 17:42:15 UTC
Description

A command injection vulnerability exists in the Red Hat Satellite API (/api/v2/job_invocations). When a job template has the effective_user property marked as overridable: true, the application fails to properly sanitize the effective_user input provided during the API request. Crucially, this exploitation does not rely on the content or logic of the Job Template/playbook itself; rather, the injection occurs during the instantiation of the job execution environment by the Satellite server. An attacker with permissions to execute job templates can inject arbitrary shell commands into this parameter, which are executed on the target infrastructure with the privileges of the execution user. 

Impact

An attacker with limited job execution privileges can gain full administrative control over managed hosts. By injecting malicious commands, they can bypass intended playbook restrictions, escalate privileges, and compromise the confidentiality, integrity, and availability of the entire managed infrastructure. 

Recommendations

Implement strict input validation and white-listing for the effective_user parameter to ensure it only contains valid usernames and no shell metacharacters (e.g., ;, &, |, $). 

Ensure the underlying execution engine uses safe API calls for user switching that do not involve shell evaluation of the username string.

Comment 1 Jon Orris 2026-10-01 22:11:44 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.18 for RHEL 9

Via RHSA-2026:74504 https://access.redhat.com/errata/RHSA-2026:74504

Comment 2 Jon Orris 2026-10-01 22:14:10 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.17 for RHEL 9

Via RHSA-2026:74505 https://access.redhat.com/errata/RHSA-2026:74505

Comment 3 Jon Orris 2026-10-01 22:31:49 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.16 for RHEL 8
  Red Hat Satellite 6.16 for RHEL 9

Via RHSA-2026:74506 https://access.redhat.com/errata/RHSA-2026:74506


Note You need to log in before you can comment on or make changes to this bug.