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.
Published: 2026-07-21
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw lies in ansible‑core’s collection installation path where the _extract_collection_from_git() function constructs a git clone command without the mandatory '--' end‑of‑options separator. arguments, those arguments are interpreted by the shell and executed during the collection install. This results in arbitrary code execution with the privileges of the user running the ansible‑galaxy collection install command, effectively allowing the attacker to take full control of the target machine. The weakness is a classic example of command‑injection vulnerability (CWE‑88).

Affected Systems

The affected products are Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux 8, 9, 10, and Red Hat Satellite 6. Any installation that relies on the open‑source ansible‑core library without the patch is potentially vulnerable; the specific version is not listed, so verification of the ansible‑core iteration is required.

Risk and Exploitability

The CVSS score of 7.8 classifies the vulnerability as high severity, but the EPSS score of less than 1% indicates that exploitation attempts are rare in the wild. The flaw is not included in CISA’s KEV catalog. Attackers must provide a malicious collection source, typically via a requirements.yml file or by directly invoking ansible‑galaxy collection install with a crafted URL. This can occur if a system pulls untrusted repositories or a trusted user executes the install command with a malicious source. The lack of a secure separator permits arbitrary parameters to be passed to the underlying shell, leading to command execution.

Generated by OpenCVE AI on July 30, 2026 at 16:57 UTC.

Remediation

Vendor 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.


OpenCVE Recommended Actions

  • Apply the vendor’s patch or upgrade ansible‑core to the latest release that includes the command‑execution fix.
  • Configure collection installations to use only trusted repositories such as Ansible Galaxy, Red Hat Automation Hub, or internal HTTPS sources, and completely avoid unverified git URLs.
  • Review all requirements.yml files before running any install command, ensuring collection sources are legitimate HTTPS URLs and contain no suspicious git+ prefixes or leading hyphens.
  • Upgrade the system’s git client to version 2.12 or newer, which disables the ext transport by default.
  • Restrict the GIT_ALLOW_PROTOCOL environment variable to https and ssh only, excluding ext unless absolutely required.

Generated by OpenCVE AI on July 30, 2026 at 16:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 22 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 22 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Tue, 21 Jul 2026 17:45:00 +0000

Type Values Removed Values Added
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.
Title Ansible-core: argument injection in ansible-galaxy collection install via git clone (incomplete fix for cve-2026-11332)
First Time appeared Redhat
Redhat ansible Automation Platform
Redhat enterprise Linux
Redhat satellite
Weaknesses CWE-88
CPEs cpe:/a:redhat:ansible_automation_platform:2
cpe:/a:redhat:satellite:6
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat ansible Automation Platform
Redhat enterprise Linux
Redhat satellite
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'}


Subscriptions

Redhat Ansible Automation Platform Enterprise Linux Satellite
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-22T14:21:51.764Z

Reserved: 2026-07-21T16:32:33.912Z

Link: CVE-2026-16493

cve-icon Vulnrichment

Updated: 2026-07-22T14:21:47.359Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-21T16:32:48Z

Links: CVE-2026-16493 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T17:00:07Z

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')