CVE-2026-16493 Details
Description
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.
A vulnerability allowing argument injection has been identified in Ansible-Core's collection installation feature. The issue arises in the '_extract_collection_from_git()' function within 'concrete_artifact_manager.py', where git clone commands are generated without a proper end-of-options separator before user-supplied URLs. This flaw enables an attacker to execute arbitrary commands by crafting a malicious collection source URI with git argument injection payloads. The vulnerability is triggered when a user runs 'ansible-galaxy collection install' with the compromised source. This issue is an incomplete fix for CVE-2026-11332, which addressed a similar vulnerability in the role installation process but overlooked the collection installation path.
Users are advised to avoid installing Ansible collections from untrusted or unverified git sources. Only use trusted sources such as Ansible Galaxy, Red Hat Automation Hub, or verified internal repositories using HTTPS. Inspect 'requirements.yml' files for suspicious URLs before installation. Additionally, ensure that the system's git version is 2.12 or later and restrict the 'GIT_ALLOW_PROTOCOL' environment variable to necessary protocols, excluding 'ext' unless absolutely required.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 4, 2026 | CVE Modified | [email protected] |
| Sep 4, 2026 | CVE Modified | [email protected] |
| Sep 3, 2026 | CVE Modified | [email protected] |
| Jul 22, 2026 | CVE Modified | CISA-ADP |
| Jul 21, 2026 | New CVE Received | [email protected] |