cve.bz

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

7.8 highEPSS 0.3%Fix available

High (7.8) in red hat. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 19th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-07-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Satellite 6.17 for RHEL 9: fixed in 1:2.16.19-1.el9sat
  • Red Hat Red Hat Satellite 6.18 for RHEL 9: fixed in 1:2.16.19-1.el9sat
  • Red Hat Red Hat Satellite 6.18 for RHEL 9: fixed in 0:1.3.1-5.el9pc
  • Red Hat Red Hat Satellite 6.18 for RHEL 9: fixed in 0:3.73.30-3.el9pc
  • Red Hat Red Hat Satellite 6.19 for RHEL 9: fixed in 1:2.16.19-1.el9sat
  • Debian, Red Hat, SUSE, openSUSE: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-16493 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-16493?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-16493?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-16493 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Satellite 6.17 for RHEL 91:2.16.19-1.el9sat
Red Hat Satellite 6.18 for RHEL 91:2.16.19-1.el9sat
Red Hat Satellite 6.18 for RHEL 90:1.3.1-5.el9pc
Red Hat Satellite 6.18 for RHEL 90:3.73.30-3.el9pc
Red Hat Satellite 6.19 for RHEL 91:2.16.19-1.el9sat

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ansible5.4.0-1DEBIAN-CVE-2026-16493
Debian12, 13, 14ansible-coreno fix listedDEBIAN-CVE-2026-16493
Ubuntu22.04:LTSansible-coreno fix listedUBUNTU-CVE-2026-16493
Ubuntu24.04:LTS, 26.04:LTS, 26.10ansible, ansible-coreno fix listedUBUNTU-CVE-2026-16493
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 2 moreansibleno fix listedUBUNTU-CVE-2026-16493
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9ansible-core, ansible-test1:2.16.19-1.el9satRHSA-2026:63387
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9openvox-server0:8.15.2-1.el9satRHSA-2026:63387
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9python-aiohttp, python3.11-aiohttp, python-aiohttp-debugsource and 1 more0:3.14.3-1.el9pcRHSA-2026:63387
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9, satellite_utils:6.17::el9rubygem-jwt0:2.10.3-1.el9satRHSA-2026:63387
Red Hatsatellite:6.18::el9, satellite_capsule:6.18::el9ansible-core, ansible-test1:2.16.19-1.el9satRHSA-2026:63386
Red Hatsatellite:6.18::el9, satellite_capsule:6.18::el9openvox-server0:8.15.2-1.el9satRHSA-2026:63386
Red Hatsatellite:6.18::el9, satellite_capsule:6.18::el9pulpcore-obsolete-packages0:1.3.1-5.el9pcRHSA-2026:63386
Red Hatsatellite:6.18::el9, satellite_capsule:6.18::el9python3.12-aiohttp, python3.12-aiohttp-debuginfo, python3.12-aiohttp-debugsource0:3.14.3-1.el9pcRHSA-2026:63386
Red Hatsatellite:6.18::el9, satellite_capsule:6.18::el9python3.12-pulpcore0:3.73.30-3.el9pcRHSA-2026:63386
Red Hatsatellite:6.18::el9, satellite_capsule:6.18::el9, satellite_utils:6.18::el9rubygem-jwt0:2.10.3-1.el9satRHSA-2026:63386
Red Hatsatellite:6.19::el9, satellite_capsule:6.19::el9ansible-core, ansible-test1:2.16.19-1.el9satRHSA-2026:63385
Red Hatsatellite:6.19::el9, satellite_capsule:6.19::el9openvox-server0:8.15.2-1.el9satRHSA-2026:63385
6 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Module for Systems Management 15 SP7, Linux Enterprise Server 15 SP4-LTSS and 5 moreansible-core2.18.3-150400.9.17.1SUSE-SU-2026:4154-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0ansible-core2.18.3-160000.4.1SUSE-SU-2026:23704-1 SUSE-SU-2026:23724-1
openSUSELeap 16.0ansible-core2.18.3-160000.4.1openSUSE-SU-2026:21828-1
openSUSETumbleweedansible-core2.21.4-2.1openSUSE-SU-2026:12052-1
openSUSETumbleweedansible-core-2.182.18.19-2.1openSUSE-SU-2026:12053-1
openSUSETumbleweedansible-core-2.192.19.13-2.1openSUSE-SU-2026:12054-1
openSUSETumbleweedansible-core-2.202.20.9-2.1openSUSE-SU-2026:12055-1
openSUSETumbleweedansible-core-2.212.21.6-1.1openSUSE-SU-2026:12451-1
Azure Linux3ansibleno fix listedAZL-93102

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat has assessed this vulnerability as Important because it allows arbitrary command execution when a user installs a collection from a crafted git source. The vulnerability exists because the fix for CVE-2026-11332 (RHSA-2026:42078, RHSA-2026:42079, RHSA-2026:42080, published 2026-07-20) only addressed the role install path in lib/ansible/utils/galaxy.py but did not apply the same '--' end-of-options separator to the collection install path in lib/ansible/galaxy/collection/concrete_artifact_manager.py. All versions of ansible-core that support collection installation from git sources are affected. Users who install collections exclusively from Ansible Galaxy or Automation Hub (HTTPS sources) are not exposed to this specific flaw.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Satellite 6.17 for RHEL 9ansible-core-1:2.16.19-1.el9satFixed 2026-09-03RHSA-2026:63387
Red Hat Satellite 6.18 for RHEL 9ansible-core-1:2.16.19-1.el9satFixed 2026-09-03RHSA-2026:63386
Red Hat Satellite 6.18 for RHEL 9pulpcore-obsolete-packages-0:1.3.1-5.el9pcFixed 2026-09-03RHSA-2026:63386
Red Hat Satellite 6.18 for RHEL 9python3.12-pulpcore-0:3.73.30-3.el9pcFixed 2026-09-03RHSA-2026:63386
Red Hat Satellite 6.19 for RHEL 9ansible-core-1:2.16.19-1.el9satFixed 2026-09-03RHSA-2026:63385
Red Hat Ansible Automation Platform 2ansible-coreAffected
Red Hat Enterprise Linux 10ansible-coreAffected
Red Hat Enterprise Linux 8ansible-coreAffected
Red Hat Enterprise Linux 9ansible-coreAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-16493.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON