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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-28)
- **CWE:** CWE-88
- **Published:** 2026-07-21T17:26:14.394Z
- **Modified:** 2026-11-26T14:17:34.813Z

## Who should check

- Anyone running Red Hat Satellite 6.17 for RHEL 9 all versions
- Anyone running Red Hat Satellite 6.18 for RHEL 9 all versions
- Anyone running Red Hat Satellite 6.19 for RHEL 9 all versions
- Anyone running Red Hat Ansible Automation Platform 2 all versions
- Anyone running Red Hat Enterprise Linux 10 all versions
- Anyone running Red Hat Enterprise Linux 8 all versions
- Anyone running Red Hat Enterprise Linux 9 all versions

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

## Affected and fixed versions

- Red Hat Satellite 6.17 for RHEL 9: all versions (cvelist)
- Red Hat Satellite 6.18 for RHEL 9: all versions (cvelist)
- Red Hat Satellite 6.18 for RHEL 9: all versions (cvelist)
- Red Hat Satellite 6.18 for RHEL 9: all versions (cvelist)
- Red Hat Satellite 6.19 for RHEL 9: all versions (cvelist)
- Red Hat Ansible Automation Platform 2: all versions (cvelist)
- Red Hat Enterprise Linux 10: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)

## Mitigation

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

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-16493. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-16493.md
Affected: Red Hat Satellite 6.17 for RHEL 9 all versions; Red Hat Satellite 6.18 for RHEL 9 all versions; Red Hat Satellite 6.18 for RHEL 9 all versions; Red Hat Satellite 6.18 for RHEL 9 all versions; Red Hat Satellite 6.19 for RHEL 9 all versions; Red Hat Ansible Automation Platform 2 all versions; Red Hat…
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Red Hat Satellite 6.17 for RHEL 9, Red Hat Satellite 6.18 for RHEL 9, Red Hat Satellite 6.19 for RHEL 9, Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-16493 being exploited?

There is no confirmed exploitation: CVE-2026-16493 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-16493?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-16493?

Red Hat Satellite 6.17 for RHEL 9 all versions; Red Hat Satellite 6.18 for RHEL 9 all versions; Red Hat Satellite 6.18 for RHEL 9 all versions; Red Hat Satellite 6.18 for RHEL 9 all versions; Red Hat Satellite 6.19 for RHEL 9 all versions; Red Hat Ansible Automation Platform 2 all versions; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 9 all versions.

### Is there a fix for CVE-2026-16493?

No fixed version is listed in the sources yet. 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.

### How do I check if I'm affected by CVE-2026-16493?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2026:63385>
- vendor: <https://access.redhat.com/errata/RHSA-2026:63386>
- vendor: <https://access.redhat.com/errata/RHSA-2026:63387>
- other: <https://access.redhat.com/security/cve/CVE-2026-16493>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2503724>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-16493>

HTML: <https://flawdb.com/CVE-2026-16493> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-16493>
