{"id":"CVE-2026-16493","published":"2026-07-21T17:26:14Z","modified":"2026-11-23T14:41:08Z","title":"Ansible-core: argument injection in ansible-galaxy collection install via git clone (incomplete fix for cve-2026-11332)","vendor":"Red Hat","product":"Red Hat Satellite 6.17 for RHEL 9","tier":"tail","description":{"text":"A flaw was found in ansible-core. The _extract_collection_from_git() function in ansible-core's concrete_artifact_manager.py constructs git clone commands without a '--' (end-of-options) separator before user-supplied URLs when installing collections from git sources. An attacker who provides a crafted collection source URI containing git argument injection payloads can achieve arbitrary command execution when a user runs 'ansible-galaxy collection install' with the malicious source. This is an incomplete fix for CVE-2026-11332, which hardened the role install path but missed the equivalent collection install code path.","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.00268,"percentile":0.11847,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"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/security/cve/CVE-2026-16493","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2503724","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":2.37},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat Satellite 6.17 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Satellite 6.18 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Satellite 6.19 for RHEL 9","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","versions":["all versions"]}],"workarounds":{"items":["The following practices would help for avoiding exposure and mitigate this flaw: 1. Do not install Ansible collections from untrusted or unverified git sources. Only install collections from trusted sources such as Ansible Galaxy (https://galaxy.ansible.com), Red Hat Automation Hub (https://console.redhat.com/ansible/automation-hub), or verified internal repositories using HTTPS URLs. 2. Carefully inspect any requirements.yml files before running 'ansible-galaxy collection install -r requirements.yml'. Verify that all collection sources use legitimate HTTPS URLs and do not contain git+ prefixed URIs with suspicious characters (especially values starting with '-'). 3. Ensure your system's git version is 2.12 or later, which disables the ext:: transport by default. While this does not fully prevent exploitation (the -ccore.sshCommand technique bypasses transport restrictions), it eliminates one of the exploitation vectors. 4. Restrict the GIT_ALLOW_PROTOCOL environment variable to only necessary protocols (e.g. https, ssh) and never include 'ext' unless absolutely required."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-22T14:20:53.644688Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-46336","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-ansible-automation-platform-2-5--cve-2026-11332","parents":[{"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"}]}]}}