CVE-2026-11332

Ansible-core: argument injection in ansible-galaxy role install leads to arbitrary code execution

Published Jun 5, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
A flaw was found in ansible-core. The ansible-galaxy role install command processes dependency specifications from a role's meta/requirements.yml file. Due to improper neutralization of argument delimiters, a malicious role author can inject arbitrary git configuration flags through the src field. This allows arbitrary code execution on the machine of a user who installs the role via ansible-galaxy role install.

Analysis

AI-generated

Technical impact

A flaw in ansible-core allows a malicious role author to inject arbitrary git configuration flags through the src field of a dependency specification in meta/requirements.yml. The improper neutralization of argument delimiters enables the attacker to execute commands on the machine that runs ansible-galaxy role install. This injection exposes the system to arbitrary code execution and is classified as a CWE‑88 vulnerability.

Affected Systems

The vulnerability impacts Red Hat Ansible Automation Platform 2, specifically the ansible-core component. No detailed version information is provided, so any installation that relies on the vulnerable ansible‑core logic remains a risk until an official fix is released.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity, and the EPSS score is not available, making it unclear how frequently the flaw is exploited. The issue is not listed in the CISA KEV catalog. The attack requires a role author with malicious intent to supply a crafted meta/requirements.yml; a user who installs that role using ansible‑galaxy role install will trigger the code execution. The vulnerability’s exploitation is limited to the environment where the role is installed, but it can compromise any user or system that runs the install command. Red Hat has indicated that no workaround meeting its product security criteria is available.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Avoid installing roles from untrusted or unknown authors; only use verified sources.
  • Manually review and sanitize the meta/requirements.yml file for suspicious src entries before execution.
  • Stay updated with Red Hat security advisories and upgrade ansible-core promptly when a patch is released.
  • No temporary workaround is provided by Red Hat; pending an official patch.

Generated by OpenCVE AI on June 5, 2026 at 10:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-w8p5-mx5w-cpqj ansible-core: Argument injection in ansible-galaxy role install leads to arbitrary code execution
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.19::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:5
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4 cpe:/a:redhat:openshift:4.21::el9
References
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux Eus
Redhat rhel E4s
Redhat rhel Eus
CPEs cpe:/a:redhat:rhel_e4s:9.4::appstream
cpe:/a:redhat:rhel_eus:9.6::appstream
cpe:/o:redhat:enterprise_linux_eus:10.0
Vendors & Products Redhat enterprise Linux Eus
Redhat rhel E4s
Redhat rhel Eus
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8 cpe:/a:redhat:enterprise_linux:8::appstream
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:satellite:6.18::el9
cpe:/a:redhat:satellite:6.19::el9
cpe:/a:redhat:satellite_capsule:6.18::el9
cpe:/a:redhat:satellite_capsule:6.19::el9
cpe:/a:redhat:satellite_maintenance:6.18::el9
cpe:/a:redhat:satellite_maintenance:6.19::el9
cpe:/a:redhat:satellite_utils:6.18::el9
cpe:/a:redhat:satellite_utils:6.19::el9
References
Type Values Removed Values Added
First Time appeared Redhat satellite Capsule
Redhat satellite Maintenance
Redhat satellite Utils
CPEs cpe:/a:redhat:satellite:6 cpe:/a:redhat:satellite:6.17::el9
cpe:/a:redhat:satellite_capsule:6.17::el9
cpe:/a:redhat:satellite_maintenance:6.17::el9
cpe:/a:redhat:satellite_utils:6.17::el9
Vendors & Products Redhat satellite Capsule
Redhat satellite Maintenance
Redhat satellite Utils
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:ansible_automation_platform:2.6::el10
cpe:/a:redhat:ansible_automation_platform:2.6::el9
cpe:/a:redhat:ansible_automation_platform_developer:2.6::el10
cpe:/a:redhat:ansible_automation_platform_developer:2.6::el9
cpe:/a:redhat:ansible_automation_platform_inside:2.6::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:ansible_automation_platform:2.5::el8
cpe:/a:redhat:ansible_automation_platform:2.5::el9
cpe:/a:redhat:ansible_automation_platform_developer:2.5::el8
cpe:/a:redhat:ansible_automation_platform_developer:2.5::el9
cpe:/a:redhat:ansible_automation_platform_inside:2.5::el8
cpe:/a:redhat:ansible_automation_platform_inside:2.5::el9
References
Type Values Removed Values Added
First Time appeared Redhat ansible Automation Platform Developer
Redhat ansible Automation Platform Inside
CPEs cpe:/a:redhat:ansible_automation_platform:2.7::el10
cpe:/a:redhat:ansible_automation_platform:2.7::el9
cpe:/a:redhat:ansible_automation_platform_developer:2.7::el10
cpe:/a:redhat:ansible_automation_platform_developer:2.7::el9
cpe:/a:redhat:ansible_automation_platform_inside:2.7::el9
Vendors & Products Redhat ansible Automation Platform Developer
Redhat ansible Automation Platform Inside
References
Type Values Removed Values Added
First Time appeared Redhat acm
Redhat ansible Portal
Redhat discovery
Redhat enterprise Linux
Redhat migration Toolkit Applications
Redhat migration Toolkit Virtualization
Redhat openshift
Redhat satellite
Redhat service Mesh
Redhat stf
CPEs cpe:/a:redhat:acm:2
cpe:/a:redhat:ansible_core:2
cpe:/a:redhat:ansible_portal:2
cpe:/a:redhat:discovery:2::el9
cpe:/a:redhat:migration_toolkit_applications:8
cpe:/a:redhat:migration_toolkit_virtualization:2
cpe:/a:redhat:openshift:4
cpe:/a:redhat:satellite:6
cpe:/a:redhat:service_mesh:3
cpe:/a:redhat:stf:1.5
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat acm
Redhat ansible Portal
Redhat discovery
Redhat enterprise Linux
Redhat migration Toolkit Applications
Redhat migration Toolkit Virtualization
Redhat openshift
Redhat satellite
Redhat service Mesh
Redhat stf
Type Values Removed Values Added
First Time appeared Redhat ansible Core
Vendors & Products Redhat ansible Core
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw was found in ansible-core. The ansible-galaxy role install command processes dependency specifications from a role's meta/requirements.yml file. Due to improper neutralization of argument delimiters, a malicious role author can inject arbitrary git configuration flags through the src field. This allows arbitrary code execution on the machine of a user who installs the role via ansible-galaxy role install.
Title Ansible-core: argument injection in ansible-galaxy role install leads to arbitrary code execution
First Time appeared Redhat
Redhat ansible Automation Platform
Weaknesses CWE-88
CPEs cpe:/a:redhat:ansible_automation_platform:2
Vendors & Products Redhat
Redhat ansible Automation Platform
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}