Public vulnerability disclosure

CVE-2026-16493

Ansible-core: argument injection in ansible-galaxy collection install via git clone (incomplete fix for cve-2026-11332)

publishedCWE-88

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.

Technical severity7.8 highCVSS 3.1 · CNA: redhat
Published2026-07-21Source updated 2026-11-03
Collected2026-11-032 attributed sources

Fixes and workarounds

Workaround

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.

Source: CNA: redhat

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
Red Hat Satellite 6.17 for RHEL 9
Red Hat
ansible-core
https://access.redhat.com/downloads/content/package-browser/
≥ 1:2.16.19-1.el9sat; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Satellite 6.18 for RHEL 9
Red Hat
ansible-core
https://access.redhat.com/downloads/content/package-browser/
≥ 1:2.16.19-1.el9sat; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Satellite 6.18 for RHEL 9
Red Hat
pulpcore-obsolete-packages
https://access.redhat.com/downloads/content/package-browser/
≥ 0:1.3.1-5.el9pc; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Satellite 6.18 for RHEL 9
Red Hat
python3.12-pulpcore
https://access.redhat.com/downloads/content/package-browser/
≥ 0:3.73.30-3.el9pc; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Satellite 6.19 for RHEL 9
Red Hat
ansible-core
https://access.redhat.com/downloads/content/package-browser/
≥ 1:2.16.19-1.el9sat; < * (unaffected, rpm)
Other versions: affected
CNA: redhat
Red Hat Ansible Automation Platform 2
Red Hat
ansible-core
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 10
Red Hat
ansible-core
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 8
Red Hat
ansible-core
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: affected
CNA: redhat
Red Hat Enterprise Linux 9
Red Hat
ansible-core
https://access.redhat.com/downloads/content/package-browser/
Range not reported
Other versions: affected
CNA: redhat

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 7.8
high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HCNA: redhat

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide