{"id":"CVE-2026-11332","published":"2026-06-05T08:21:43Z","modified":"2026-11-04T21:54:10Z","title":"Ansible-core: argument injection in ansible-galaxy role install leads to arbitrary code execution","vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 8","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00252,"percentile":0.10157,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:42078","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:42079","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:42080","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:46836","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:50340","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:50344","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:50357","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:50479","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:57148","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:57149","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:63385","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:63386","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:63387","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:66248","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:67465","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:67466","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:67467","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:83703","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:87124","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:92281","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:92284","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-11332","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2485379","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://github.com/ansible/ansible","tags":[]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11332.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":7.5,"factors":[{"name":"EPSS percentile","points":2.03},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.5 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6 for RHEL 10","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6 for RHEL 10","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6 for RHEL 9","versions":["all versions"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-05T15:43:53.403669Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"ansible-core","vulnerableRanges":["<2.16.19rc1",">=2.17.0b1, <2.18.18rc1",">=2.19.0b1, <2.19.11rc1",">=2.20.0b1, <2.20.7rc1",">=2.21.0b1, <2.21.1rc1"],"patched":["2.16.19rc1","2.18.18rc1","2.19.11rc1","2.20.7rc1","2.21.1rc1"],"from":["GHSA-w8p5-mx5w-cpqj","PYSEC-2026-3458"],"provenance":"source"}],"summary":{"text":"A flaw in ansible-core's ansible-galaxy role install command, affecting Red Hat Ansible Automation Platform 2.5 for RHEL 8, lets a malicious role author inject arbitrary git configuration flags through the src field of a role's meta/requirements.yml dependency specification. An attacker who authors such a role can achieve arbitrary code execution on the machine of any user who installs it with ansible-galaxy role install, which requires that the victim be local to the attacker's crafted role and that the user actively run the install command.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:23Z"},"euvd":{"id":"EUVD-2026-34791","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-ansible-automation-platform-2-5--cve-2026-11332","children":[{"from":"CVE-2026-11332","to":"CVE-2026-16493","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is an incomplete fix for CVE-2026-11332, which hardened the role install path but missed the equivalent collection install code path.","from":"CVE.org","in":"CVE-2026-16493"}]}],"packageHistory":[{"cve":"CVE-2024-8775","published":"2024-09-14","fixed":"2.17.6","kev":false},{"cve":"CVE-2024-9902","published":"2024-11-06","fixed":"2.18.0rc2","kev":false},{"cve":"CVE-2024-11079","published":"2024-11-11","fixed":"2.18.1rc1","kev":false,"link":{"from":"CVE-2024-11079","to":"CVE-2026-11332","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ansible-core","fromFixed":"2.16.14rc1","toFixed":"2.16.19rc1","daysApart":571}]}},{"cve":"CVE-2026-11332","published":"2026-06-05","fixed":"2.21.1rc1","kev":false}],"package":"PyPI:ansible-core"}}