Skip to content
OpenAdvisories

Description

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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Satellite 6.17 for RHEL 9 — —
Red Hat Red Hat Satellite 6.18 for RHEL 9 — —
Red Hat Migration Toolkit for Applications 8 — —
Red Hat Migration Toolkit for Virtualization — —
Red Hat OpenShift Service Mesh 3 — —
Red Hat Red Hat Advanced Cluster Management for Kubernetes 2 — —
Red Hat Red Hat Ansible Automation Platform 2 — —
Red Hat Red Hat Ansible Automation Platform Ansible Core 2 — —
Red Hat Red Hat Certification Program for Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Discovery 2 — —
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat OpenShift Container Platform 4 — —
Red Hat Red Hat OpenShift Container Platform 5 — —
Red Hat Red Hat OpenStack Platform 17.1 — —
Red Hat Red Hat OpenStack Platform 18.0 — —
Red Hat Red Hat Update Infrastructure 5 — —
Red Hat Self-service automation portal 2 — —
Red Hat Service Telemetry Framework 1.5 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ansible-core No fix yet —
Debian 13 ansible-core No fix yet —
Debian 12 ansible-core No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ansible-core No fix yet —
Ubuntu 26.04 LTS ansible-core No fix yet —
Ubuntu 24.04 LTS ansible-core No fix yet —
Ubuntu 22.04 LTS ansible-core No fix yet —

References