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

Published Nov 9, 2026
·
Updated

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 Software

1 affected component
pypi/ansible-core

Event History

Nov 9, 2026
CVE Published
via MITRE·05:57 PM
Data Sourced
via MITRE·05:57 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Hosts running the ansible.builtin.git module are exposed when the repository URL supplied to the module is attacker-controlled. The resulting command execution occurs on the host running the module.

2

What does an attacker need to exploit it?

An attacker needs influence over the repository URL passed to ansible.builtin.git and must cause it to begin with a dash. Such a value can be interpreted by git as an option, including options such as --upload-pack or --exec.

3

Are ordinary repository URLs affected?

The described injection requires a repository URL beginning with a dash. Repository URLs that do not begin with a dash are not described as triggering this argument-injection condition.

4

What can be done while a patch is unavailable?

Do not pass untrusted repository URLs to ansible.builtin.git. Validate or constrain repository URL inputs so they cannot start with a dash.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203