CVE-2026-16493
Ansible-core: argument injection in ansible-galaxy collection install via git clone (incomplete fix for cve-2026-11332)
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.
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
Vulnerability facts
- 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 Enterprise Linux 10 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 9 all versions
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
- CWE
- CWE-88
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
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-26).
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.