NetSight
medium6.7

CVE-2026-84503

Ansible-core: ansible-core: ansible.builtin.git invokes git without a `--` separator, allowing argument injection via a `-`-leading repository url (e.g. --upload-pack) -> rce

Impact

A flaw was found in ansible-core's ansible.builtin.git module. The module invokes git (ls-remote, clone, fetch) with the repository URL as a positional argument and without a "--" separator, so a repository URL that begins with a dash is interpreted by git as a command-line option. A caller that passes an attacker-controlled repository URL to the module can trigger argument injection (for example --upload-pack/--exec), resulting in arbitrary command execution on the host running the module.

An attacker can exploit this with local access to the system, with a regular user account, but a user has to do something, such as open a file or a link. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.

Affected products · Red Hat

ProductAffected versions
Migration Toolkit for Applications 8
All versions
Migration Toolkit for Virtualization
All versions
Red Hat Ansible Automation Platform 2
All versions
Red Hat Satellite 6.17 for RHEL 9
Version patch: 1:2.16.19-4.el9sat
Red Hat Satellite 6.18 for RHEL 9
Version patch: 1:2.16.19-4.el9sat

Weakness classification

References