Bug 2485379 (CVE-2026-11332) - CVE-2026-11332 ansible-core: argument injection in ansible-galaxy role install leads to arbitrary code execution
Summary: CVE-2026-11332 ansible-core: argument injection in ansible-galaxy role instal...
Keywords:
Status: NEW
Alias: CVE-2026-11332
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2485397
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-05 07:28 UTC by OSIDB Bzimport
Modified: 2026-07-29 19:39 UTC (History)
50 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:42078 0 None None None 2026-07-20 15:59:25 UTC
Red Hat Product Errata RHSA-2026:42079 0 None None None 2026-07-20 16:02:43 UTC
Red Hat Product Errata RHSA-2026:42080 0 None None None 2026-07-20 15:53:30 UTC

Description OSIDB Bzimport 2026-06-05 07:28:27 UTC
A flaw was found in ansible-core's ansible-galaxy command. When installing a role, ansible-galaxy processes a meta/requirements.yml file that lists role dependencies. The src and name fields from this file are passed as arguments to git clone via Python's Popen without a -- separator to delimit options from positional arguments. A malicious role author can craft a dependency entry where the src field contains a git configuration flag (e.g., -ccore.sshCommand=sh -c "malicious_command") and the name field provides a valid repository URL. This results in arbitrary code execution on the system of any user who installs the role. The fix is to insert -- before the positional arguments in the git clone command list.

Comment 3 errata-xmlrpc 2026-07-20 15:53:26 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.7 for RHEL 9
  Red Hat Ansible Automation Platform 2.7 for RHEL 10

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

Comment 4 errata-xmlrpc 2026-07-20 15:59:22 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.5 for RHEL 9
  Red Hat Ansible Automation Platform 2.5 for RHEL 8

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

Comment 5 errata-xmlrpc 2026-07-20 16:02:41 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.6 for RHEL 9
  Red Hat Ansible Automation Platform 2.6 for RHEL 10

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


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